|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.meta.ensembleSelection.EnsembleMetricHelper
public class EnsembleMetricHelper
This class is used by Ensemble Selection. It provides the "enumeration" of the metrics that can be used by ensemble selection, as well as a helper function for computing the metric using an Evaluation class.
Field Summary | |
---|---|
static int |
METRIC_ACCURACY
metric: Accuracy |
static int |
METRIC_ALL
metric: All |
static int |
METRIC_FSCORE
metric: FScore |
static int |
METRIC_PRECISION
metric: Precision |
static int |
METRIC_RECALL
metric: Recall |
static int |
METRIC_RMSE
metric: RMSE |
static int |
METRIC_ROC
metric: ROC |
Constructor Summary | |
---|---|
EnsembleMetricHelper()
|
Method Summary | |
---|---|
static double |
getMetric(Evaluation eval,
int metric_index)
Given an Evaluation object and metric, call the appropriate function to get the value for that metric and return it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int METRIC_ACCURACY
public static final int METRIC_RMSE
public static final int METRIC_ROC
public static final int METRIC_PRECISION
public static final int METRIC_RECALL
public static final int METRIC_FSCORE
public static final int METRIC_ALL
Constructor Detail |
---|
public EnsembleMetricHelper()
Method Detail |
---|
public static double getMetric(Evaluation eval, int metric_index)
eval
- the evaluation object to usemetric_index
- the metric to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |