public class CostCurve extends java.lang.Object implements RevisionHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NORM_EXPECTED_COST_NAME
attribute name: Normalized Expected Cost
|
static java.lang.String |
PROB_COST_FUNC_NAME
attribute name: Probability Cost Function
|
static java.lang.String |
RELATION_NAME
The name of the relation used in cost curve datasets
|
static java.lang.String |
THRESHOLD_NAME
attribute name: Threshold
|
Constructor and Description |
---|
CostCurve() |
Modifier and Type | Method and Description |
---|---|
Instances |
getCurve(java.util.ArrayList<Prediction> predictions)
Calculates the performance stats for the default class and return results
as a set of Instances.
|
Instances |
getCurve(java.util.ArrayList<Prediction> predictions,
int classIndex)
Calculates the performance stats for the desired class and return results
as a set of Instances.
|
java.lang.String |
getRevision()
Returns the revision string.
|
public static final java.lang.String RELATION_NAME
public static final java.lang.String PROB_COST_FUNC_NAME
public static final java.lang.String NORM_EXPECTED_COST_NAME
public static final java.lang.String THRESHOLD_NAME
public Instances getCurve(java.util.ArrayList<Prediction> predictions)
predictions
- the predictions to base the curve onTwoClassStats
public Instances getCurve(java.util.ArrayList<Prediction> predictions, int classIndex)
predictions
- the predictions to base the curve onclassIndex
- index of the class of interest.public java.lang.String getRevision()
getRevision
in interface RevisionHandler