public class EvaluationMetricHelper extends Object
| Constructor and Description |
|---|
EvaluationMetricHelper(Evaluation eval)
Construct a new EvaluationMetricHelper
|
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getAllMetricNames()
Get a list of all available evaluation metric names
|
static List<String> |
getBuiltInMetricNames()
Get a list of built-in metric names
|
double |
getNamedMetric(String statName,
int... classValIndex)
Gets the value of a named metric.
|
double[] |
getNamedMetricThresholds(String statName)
Gets the thresholds produced by the metric, if the metric implements
ThresholdProducingMetric.
|
static List<String> |
getPluginMetricNames()
Get a list of plugin metric names
|
boolean |
metricIsMaximisable(String statName)
Returns true if the named metric is maximisable
|
void |
setEvaluation(Evaluation eval)
Sets the Evaluation object to use
|
public EvaluationMetricHelper(Evaluation eval)
eval - the Evaluation object to usepublic void setEvaluation(Evaluation eval)
eval - the Evaluation object to usepublic static List<String> getBuiltInMetricNames()
public static List<String> getPluginMetricNames()
public static List<String> getAllMetricNames()
public double getNamedMetric(String statName, int... classValIndex) throws Exception
statName - the name of the metric/statistic to getclassValIndex - the optional class value indexException - if the metric/stat is unknown or a problem occurspublic double[] getNamedMetricThresholds(String statName) throws Exception
statName - the name of the metric/statistic to getException - if the metric/stat is unknown or a problem occurspublic boolean metricIsMaximisable(String statName) throws Exception
statName - the name of the metric/statistic to checkException - if a problem occursCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.