public class EvaluationStatisticsUtils extends Object
Constructor and Description |
---|
EvaluationStatisticsUtils() |
Modifier and Type | Method and Description |
---|---|
static List<MultiLabelClassifier> |
classifiers(List<EvaluationStatistics> stats,
boolean sort)
Returns all the unique classifiers of all the statistics.
|
static List<String> |
commandLines(List<EvaluationStatistics> stats,
boolean sort)
Returns all the unique classifiers of all the statistics.
|
static List<String> |
headers(List<EvaluationStatistics> stats,
boolean moveRunFold,
boolean addClassifierRelation)
Creates a list of headers (= stats keys) from the provided statistics.
|
static List<String> |
keys(List<EvaluationStatistics> stats,
boolean sort)
Returns all the keys of all the statistics.
|
static List<String> |
measurements(List<EvaluationStatistics> stats)
Returns all available measurements.
|
static List<Number> |
measurements(List<EvaluationStatistics> stats,
MultiLabelClassifier classifier,
weka.core.Instances dataset,
String measurement)
Returns all the values of a specific measurement for the specified classifier/dataset combination.
|
static List<Number> |
measurements(List<EvaluationStatistics> stats,
String classifier,
String dataset,
String measurement)
Returns all the values of a specific measurement for the specified classifier/dataset combination.
|
static int[][] |
rankMatrix(List<EvaluationStatistics> stats,
String measurement)
Rank Matrix
|
static List<String> |
relations(List<EvaluationStatistics> stats,
boolean sort)
Returns all the unique relations of all the statistics.
|
static double[][] |
valueMatrix(List<EvaluationStatistics> stats,
String measurement)
Value Matrix
|
public static List<String> keys(List<EvaluationStatistics> stats, boolean sort)
stats
- the stats to inspectsort
- whether to sort the keys alphabeticallypublic static List<MultiLabelClassifier> classifiers(List<EvaluationStatistics> stats, boolean sort)
stats
- the stats to inspectsort
- whether to sort the classifiers alphabeticallypublic static List<String> commandLines(List<EvaluationStatistics> stats, boolean sort)
stats
- the stats to inspectsort
- whether to sort the classifiers alphabeticallypublic static List<Number> measurements(List<EvaluationStatistics> stats, MultiLabelClassifier classifier, weka.core.Instances dataset, String measurement)
stats
- the stats to inspectclassifier
- the classifier to look fordataset
- the dataset to look formeasurement
- the measurement to retrievepublic static List<Number> measurements(List<EvaluationStatistics> stats, String classifier, String dataset, String measurement)
stats
- the stats to inspectclassifier
- the classifier to look for (commandline)dataset
- the dataset to look for (relation name)measurement
- the measurement to retrievepublic static double[][] valueMatrix(List<EvaluationStatistics> stats, String measurement)
public static int[][] rankMatrix(List<EvaluationStatistics> stats, String measurement)
public static List<String> measurements(List<EvaluationStatistics> stats)
stats
- the stats to inspectpublic static List<String> relations(List<EvaluationStatistics> stats, boolean sort)
stats
- the stats to inspectsort
- whether to sort the relations alphabeticallypublic static List<String> headers(List<EvaluationStatistics> stats, boolean moveRunFold, boolean addClassifierRelation)
stats
- the stats to usemoveRunFold
- whether to moved "Fold" and "Run" to the startaddClassifierRelation
- whether to add "Classifier" and "Relation"Copyright © 2017. All Rights Reserved.