net.sf.myra.datamining.measure
Class CorrectnessRateMeasure
java.lang.Object
net.sf.myra.datamining.measure.CorrectnessRateMeasure
- All Implemented Interfaces:
- Measure
public class CorrectnessRateMeasure
- extends java.lang.Object
- implements Measure
Field Summary |
static java.lang.String |
RMAX
|
static java.lang.String |
RMIN
|
static java.lang.String |
W1
|
static java.lang.String |
W2
|
static java.lang.String |
W3
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMAX
public static final java.lang.String RMAX
- See Also:
- Constant Field Values
RMIN
public static final java.lang.String RMIN
- See Also:
- Constant Field Values
W1
public static final java.lang.String W1
- See Also:
- Constant Field Values
W2
public static final java.lang.String W2
- See Also:
- Constant Field Values
W3
public static final java.lang.String W3
- See Also:
- Constant Field Values
CorrectnessRateMeasure
public CorrectnessRateMeasure()
evaluate
public Unit<?> evaluate(Dataset dataset,
Model model)
- Description copied from interface:
Measure
- Evaluates the specified model.
- Specified by:
evaluate
in interface Measure
- Parameters:
dataset
- the test dataset.model
- the model to be evaluated.
rateOfCorrectness
public double rateOfCorrectness(double truePositive,
double trueNegative,
double actualPositive,
double actualNegative)
rateOfMissingChances
public double rateOfMissingChances(double falseNegative,
double actualPositive)
rateOfFailure
public double rateOfFailure(double falsePositive,
double truePositive)
Copyright © 2013. All Rights Reserved.