public abstract class Evaluator extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
closeTruth |
protected boolean |
includeObserved |
Modifier | Constructor and Description |
---|---|
protected |
Evaluator() |
Modifier and Type | Method and Description |
---|---|
void |
compute(Database rvDB,
Database truthDB,
StandardPredicate predicate) |
void |
compute(Database rvDB,
Database truthDB,
StandardPredicate predicate,
boolean rvDBCached)
A convenience call for those who don't want to create a training map directly.
|
abstract void |
compute(TrainingMap data)
One of the main computation method.
|
abstract void |
compute(TrainingMap data,
StandardPredicate predicate)
One of the main computation method.
|
abstract String |
getAllStats()
Get a string that contains the full range of stats that this Evaluator can provide.
|
abstract double |
getBestRepScore()
The maximum (i.e.
|
boolean |
getCloseTruth() |
boolean |
getIncludeObserved() |
Iterable<Map.Entry<GroundAtom,GroundAtom>> |
getMap(TrainingMap trainingMap)
Get the full mapping of target atoms to truth atoms.
|
double |
getNormalizedMaxRepMetric()
Combine getBestRepScore() with isHigherRepBetter() so that the values from getNormalizedRepMetric are always
less than or equal to this value.
|
double |
getNormalizedRepMetric()
Combine getRepMetric() with isHigherRepBetter() so that higher values that come out of this method are always better.
|
abstract double |
getRepMetric()
The representative (rep) metric is the metric that was chosen to be the representative for this evaluator.
|
Iterable<GroundAtom> |
getTargets(TrainingMap trainingMap)
Get the full collection of target atoms.
|
abstract boolean |
isHigherRepBetter()
Is a higher value for the current representative metric better?
|
void |
setCloseTruth(boolean closeTruth) |
void |
setIncludeObserved(boolean includeObserved) |
protected boolean includeObserved
protected boolean closeTruth
public boolean getIncludeObserved()
public void setIncludeObserved(boolean includeObserved)
public boolean getCloseTruth()
public void setCloseTruth(boolean closeTruth)
public abstract void compute(TrainingMap data)
public abstract void compute(TrainingMap data, StandardPredicate predicate)
public abstract double getRepMetric()
public abstract boolean isHigherRepBetter()
public double getNormalizedRepMetric()
public double getNormalizedMaxRepMetric()
public abstract double getBestRepScore()
public abstract String getAllStats()
public void compute(Database rvDB, Database truthDB, StandardPredicate predicate, boolean rvDBCached)
public void compute(Database rvDB, Database truthDB, StandardPredicate predicate)
public Iterable<Map.Entry<GroundAtom,GroundAtom>> getMap(TrainingMap trainingMap)
public Iterable<GroundAtom> getTargets(TrainingMap trainingMap)
Copyright © 2022 University of California, Santa Cruz. All rights reserved.