Package moa.evaluation
Class BasicAUCImbalancedPerformanceEvaluator.Estimator
- java.lang.Object
-
- moa.evaluation.BasicAUCImbalancedPerformanceEvaluator.Estimator
-
- Enclosing class:
- BasicAUCImbalancedPerformanceEvaluator
public class BasicAUCImbalancedPerformanceEvaluator.Estimator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BasicAUCImbalancedPerformanceEvaluator.Estimator.Score
-
Field Summary
Fields Modifier and Type Field Description protected boolean
calculateAuc
protected double[]
columnKappa
protected double
correctPositivePredictions
protected double
correctPredictions
protected double
numNeg
protected double
numPos
protected int
position
protected double[]
rowKappa
protected TreeSet<BasicAUCImbalancedPerformanceEvaluator.Estimator.Score>
sortedScores
-
Constructor Summary
Constructors Constructor Description Estimator(boolean calculateAuc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(double score, boolean isPositive, boolean correctPrediction)
double
getAccuracy()
double
getAUC()
double
getGMean()
double
getKappa()
double
getRatio()
double
getRecall()
double
getScoredAUC()
-
-
-
Field Detail
-
sortedScores
protected TreeSet<BasicAUCImbalancedPerformanceEvaluator.Estimator.Score> sortedScores
-
position
protected int position
-
numPos
protected double numPos
-
numNeg
protected double numNeg
-
correctPredictions
protected double correctPredictions
-
correctPositivePredictions
protected double correctPositivePredictions
-
columnKappa
protected double[] columnKappa
-
rowKappa
protected double[] rowKappa
-
calculateAuc
protected boolean calculateAuc
-
-
Method Detail
-
add
public void add(double score, boolean isPositive, boolean correctPrediction)
-
getAUC
public double getAUC()
-
getScoredAUC
public double getScoredAUC()
-
getRatio
public double getRatio()
-
getAccuracy
public double getAccuracy()
-
getKappa
public double getKappa()
-
getGMean
public double getGMean()
-
getRecall
public double getRecall()
-
-