public class DiscreteEvaluator extends Evaluator
Modifier and Type | Class and Description |
---|---|
static class |
DiscreteEvaluator.RepresentativeMetric |
Constructor and Description |
---|
DiscreteEvaluator() |
DiscreteEvaluator(double threshold) |
DiscreteEvaluator(double threshold,
DiscreteEvaluator.RepresentativeMetric representative) |
DiscreteEvaluator(double threshold,
String representative) |
Modifier and Type | Method and Description |
---|---|
double |
accuracy() |
void |
compute(TrainingMap trainingMap)
One of the main computation method.
|
void |
compute(TrainingMap trainingMap,
StandardPredicate predicate)
One of the main computation method.
|
double |
f1() |
double |
fScore(double beta) |
String |
getAllStats()
Get a string that contains the full range of stats that this Evaluator can provide.
|
double |
getRepMetric()
The representative (rep) metric is the metric that was chosen to be the representative for this evaluator.
|
double |
getThreshold() |
boolean |
isHigherRepBetter()
Is a higher value for the current representative metric better?
|
double |
negativePrecision() |
double |
negativeRecall() |
double |
positivePrecision() |
double |
positiveRecall() |
compute, compute, getNormalizedRepMetric
public DiscreteEvaluator()
public DiscreteEvaluator(double threshold)
public DiscreteEvaluator(double threshold, String representative)
public DiscreteEvaluator(double threshold, DiscreteEvaluator.RepresentativeMetric representative)
public void compute(TrainingMap trainingMap)
Evaluator
public void compute(TrainingMap trainingMap, StandardPredicate predicate)
Evaluator
public double getRepMetric()
Evaluator
getRepMetric
in class Evaluator
public boolean isHigherRepBetter()
Evaluator
isHigherRepBetter
in class Evaluator
public double getThreshold()
public double positivePrecision()
public double negativePrecision()
public double positiveRecall()
public double negativeRecall()
public double f1()
public double fScore(double beta)
public double accuracy()
public String getAllStats()
Evaluator
getAllStats
in class Evaluator
Copyright © 2020 University of California, Santa Cruz. All rights reserved.