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(FastVector predictions)
Calculates the performance stats for the default class and return
results as a set of Instances.
|
Instances |
getCurve(FastVector 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.
|
static void |
main(java.lang.String[] args)
Tests the CostCurve generation from the command line.
|
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(FastVector predictions)
predictions
- the predictions to base the curve onTwoClassStats
public Instances getCurve(FastVector 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
public static void main(java.lang.String[] args)
args
- currently ignored