public class EnsembleMetricHelper
extends java.lang.Object
implements weka.core.RevisionHandler
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
EnsembleMetricHelper() |
Modifier and Type | Method and Description |
---|---|
static double |
getMetric(weka.classifiers.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.
|
java.lang.String |
getRevision()
Returns the revision string.
|
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
public static double getMetric(weka.classifiers.Evaluation eval, int metric_index)
eval
- the evaluation object to usemetric_index
- the metric to usepublic java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler