public class RankingEvaluator extends Evaluator
Modifier and Type | Class and Description |
---|---|
static class |
RankingEvaluator.RepresentativeMetric |
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PREFIX
Prefix of property keys used by this class.
|
static String |
DEFAULT_REPRESENTATIVE |
static double |
DEFAULT_THRESHOLD |
static String |
REPRESENTATIVE_KEY
The representative metric.
|
static String |
THRESHOLD_KEY
The truth threshold.
|
Constructor and Description |
---|
RankingEvaluator() |
RankingEvaluator(double threshold) |
RankingEvaluator(double threshold,
RankingEvaluator.RepresentativeMetric representative) |
RankingEvaluator(double threshold,
String representative) |
Modifier and Type | Method and Description |
---|---|
double |
auroc()
Returns area under ROC curve.
|
void |
compute(TrainingMap trainingMap)
One of the main computation method.
|
void |
compute(TrainingMap trainingMap,
StandardPredicate predicate)
One of the main computation method.
|
String |
getAllStats()
Get a string that contains the full range of stats that this Evaluator can provide.
|
double |
getRepresentativeMetric() |
double |
getThreshold() |
boolean |
isHigherRepresentativeBetter() |
double |
negativeAUPRC()
Returns area under the precision recall curve for the negative class.
|
double |
positiveAUPRC()
Returns area under the precision recall curve.
|
public static final String CONFIG_PREFIX
public static final String THRESHOLD_KEY
public static final double DEFAULT_THRESHOLD
public static final String REPRESENTATIVE_KEY
public static final String DEFAULT_REPRESENTATIVE
public RankingEvaluator()
public RankingEvaluator(double threshold)
public RankingEvaluator(double threshold, String representative)
public RankingEvaluator(double threshold, RankingEvaluator.RepresentativeMetric representative)
public void compute(TrainingMap trainingMap)
Evaluator
public void compute(TrainingMap trainingMap, StandardPredicate predicate)
Evaluator
public double getRepresentativeMetric()
getRepresentativeMetric
in class Evaluator
public boolean isHigherRepresentativeBetter()
isHigherRepresentativeBetter
in class Evaluator
public double getThreshold()
public double positiveAUPRC()
public double negativeAUPRC()
public double auroc()
public String getAllStats()
Evaluator
getAllStats
in class Evaluator
Copyright © 2018 University of California, Santa Cruz. All rights reserved.