public abstract class AbstractEvaluationMetric extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEvaluationMetric.UnknownStatisticException
Exception for subclasses to throw if asked for a statistic that is not part
of their implementation
|
| Constructor and Description |
|---|
AbstractEvaluationMetric() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
appliesToNominalClass()
Return true if this evaluation metric can be computed when the class is
nominal
|
abstract boolean |
appliesToNumericClass()
Return true if this evaluation metric can be computed when the class is
numeric
|
abstract String |
getMetricDescription()
Get a short description of this metric (algorithm, forumulas etc.).
|
abstract String |
getMetricName()
Get the name of this metric
|
static ArrayList<AbstractEvaluationMetric> |
getPluginMetrics()
Gets a list of freshly instantiated concrete implementations of available
plugin metrics or null if there are no plugin metrics available
|
abstract double |
getStatistic(String statName)
Get the value of the named statistic
|
abstract List<String> |
getStatisticNames()
Get a list of the names of the statistics that this metrics computes.
|
void |
setBaseEvaluation(Evaluation eval)
Set the base evaluation object to use.
|
boolean |
statisticIsMaximisable(String statName)
True if the optimum value of the named metric is a maximum value; false if
the optimim value is a minimum value.
|
public static ArrayList<AbstractEvaluationMetric> getPluginMetrics()
public void setBaseEvaluation(Evaluation eval)
eval - public abstract boolean appliesToNominalClass()
public abstract boolean appliesToNumericClass()
public abstract String getMetricName()
public abstract String getMetricDescription()
public abstract List<String> getStatisticNames()
public abstract double getStatistic(String statName)
statName - the name of the statistic to compute the value forpublic boolean statisticIsMaximisable(String statName)
Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.