public abstract class TSEvalModule extends Object
Constructor and Description |
---|
TSEvalModule() |
Modifier and Type | Method and Description |
---|---|
abstract double[] |
calculateMeasure()
Calculate the measure that this module represents.
|
abstract void |
evaluateForInstance(List<weka.classifiers.evaluation.NumericPrediction> forecasts,
weka.core.Instance inst)
Evaluate the given forecast(s) with respect to the given
test instance.
|
abstract String |
getDefinition()
Return the mathematical formula that this
evaluation module computes.
|
abstract String |
getDescription()
Return the longer (single sentence) description
of this evaluation module
|
abstract String |
getEvalName()
Return the short identifying name of this evaluation module
|
static TSEvalModule |
getModule(String moduleName)
Factory method for obtaining a named evaluation module.
|
static List<TSEvalModule> |
getModuleList()
Gets a list of known evaluation modules.
|
List<String> |
getTargetFields()
Get the list of target field names.
|
abstract void |
reset()
Reset the module
|
void |
setTargetFields(List<String> targets)
Set a list of target field names.
|
abstract String |
toSummaryString()
Return the summary description of the computed measure for
each target.
|
public static List<TSEvalModule> getModuleList()
public static TSEvalModule getModule(String moduleName) throws IllegalArgumentException
moduleName
- the name of the module to obtainIllegalArgumentException
- if the supplied module
name is unknown and can't be instantiated.public abstract void reset()
public abstract String getEvalName()
public abstract String getDescription()
public abstract String getDefinition()
public abstract void evaluateForInstance(List<weka.classifiers.evaluation.NumericPrediction> forecasts, weka.core.Instance inst) throws Exception
forecasts
- a List of forecasted values. Each element
corresponds to one of the targets and is assumed to be in the same
order as the list of targets supplied to the setTargetFields() method.Exception
- if the evaluation can't be completed for some
reason.public abstract double[] calculateMeasure() throws Exception
Exception
- if the measure can't be computed for some reason.public abstract String toSummaryString() throws Exception
Exception
- if the measure can't be computed for some reason.public void setTargetFields(List<String> targets)
targets
- a List of target field namesCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.