public class CategoricalEvaluator extends Evaluator
Modifier and Type | Class and Description |
---|---|
static class |
CategoricalEvaluator.RepresentativeMetric |
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_INDEXES_KEY
The index of the arguments in the predicate (delimited by colons).
|
static String |
CONFIG_PREFIX
Prefix of property keys used by this class.
|
static String |
DEFAULT_CATEGORY_INDEXES |
static String |
DEFAULT_PREDICATE_KEY
The default predicate to use when none are supplied.
|
static String |
DEFAULT_REPRESENTATIVE |
static String |
DELIM |
static String |
REPRESENTATIVE_KEY
The representative metric.
|
Constructor and Description |
---|
CategoricalEvaluator() |
CategoricalEvaluator(CategoricalEvaluator.RepresentativeMetric representative,
int... rawCategoryIndexes) |
CategoricalEvaluator(int... rawCategoryIndexes) |
CategoricalEvaluator(String representative,
int... rawCategoryIndexes) |
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.
|
String |
getAllStats()
Get a string that contains the full range of stats that this Evaluator can provide.
|
double |
getRepresentativeMetric() |
boolean |
isHigherRepresentativeBetter() |
void |
setCategoryIndexes(int... rawCategoryIndexes) |
public static final String DELIM
public static final String CONFIG_PREFIX
public static final String CATEGORY_INDEXES_KEY
public static final String DEFAULT_CATEGORY_INDEXES
public static final String REPRESENTATIVE_KEY
public static final String DEFAULT_REPRESENTATIVE
public static final String DEFAULT_PREDICATE_KEY
public CategoricalEvaluator()
public CategoricalEvaluator(int... rawCategoryIndexes)
public CategoricalEvaluator(String representative, int... rawCategoryIndexes)
public CategoricalEvaluator(CategoricalEvaluator.RepresentativeMetric representative, int... rawCategoryIndexes)
public void setCategoryIndexes(int... rawCategoryIndexes)
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 accuracy()
public String getAllStats()
Evaluator
getAllStats
in class Evaluator
Copyright © 2018 University of California, Santa Cruz. All rights reserved.