public class ClassifierMetricGetter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.List<java.lang.String> |
MULTI_LABEL_METRICS
Available metrics for multilabelclassifiers
|
protected static java.util.List<java.lang.String> |
SINGLE_LABEL_METRICS
Available metric for singlelabelclassifiers
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
getMultiLabelMetrics() |
static java.util.List<java.lang.String> |
getSingleLabelMetrics() |
static double |
getValueOfMetricForSingleLabelClassifier(weka.classifiers.Evaluation eval,
java.lang.String metricName,
int classIndex)
Extracts the metric with the given name from the Evaluation object that is
the result of evaluating a classifier.
|
static double |
getValueOfMultilabelClassifier(meka.core.Result result,
java.lang.String metricName)
Extracts the metric with the given name from the result of evaluating a
multilabel classifier (Calls the corresponding method).
|
protected static final java.util.List<java.lang.String> SINGLE_LABEL_METRICS
protected static final java.util.List<java.lang.String> MULTI_LABEL_METRICS
public static java.util.List<java.lang.String> getSingleLabelMetrics()
public static java.util.List<java.lang.String> getMultiLabelMetrics()
public static double getValueOfMetricForSingleLabelClassifier(weka.classifiers.Evaluation eval,
java.lang.String metricName,
int classIndex)
throws java.lang.Exception
eval - The Evaluation object containing the results of evaluating a
classifiermetricName - The name of the metric to retrieveclassIndex - The class index in the instances the classifier was evaluated onjava.lang.Exception - If a metric cannot be retrievedpublic static double getValueOfMultilabelClassifier(meka.core.Result result,
java.lang.String metricName)
result - The result of evaluating the classifiermetricName - The metric which should be retrieved