edu.cornell.med.icb.stat
Class AccuracyCalculator
java.lang.Object
edu.cornell.med.icb.stat.PredictionStatisticCalculator
edu.cornell.med.icb.stat.AccuracyCalculator
public class AccuracyCalculator
- extends PredictionStatisticCalculator
Calculates the accuracy of predictions.
- Author:
- Fabien Campagne
Date: Apr 23, 2008
Time: 3:23:25 PM
|
Method Summary |
double |
evaluateAccuracy(double threshold,
double[] decisionValues,
double[] labels)
Evaluate the accuracy for a given decision function threshold. |
double |
evaluateStatisticAtThreshold(double threshold,
double[] decisionValues,
double[] labels)
Evaluate the statistic for a given decision function threshold. |
String |
getMeasureName()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccuracyCalculator
public AccuracyCalculator()
getMeasureName
public String getMeasureName()
- Specified by:
getMeasureName in class PredictionStatisticCalculator
evaluateAccuracy
public double evaluateAccuracy(double threshold,
double[] decisionValues,
double[] labels)
- Evaluate the accuracy for a given decision function threshold.
- Parameters:
threshold - decisionValues - labels -
- Returns:
- Accuracy of the prediction at threshold.
evaluateStatisticAtThreshold
public double evaluateStatisticAtThreshold(double threshold,
double[] decisionValues,
double[] labels)
- Description copied from class:
PredictionStatisticCalculator
- Evaluate the statistic for a given decision function threshold.
- Specified by:
evaluateStatisticAtThreshold in class PredictionStatisticCalculator
Copyright © 2001-2009 Institute for Computational Biomedicine, All Rights Reserved.