public class ErrorModule extends TSEvalModule
| Constructor and Description |
|---|
ErrorModule() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
calculateMeasure()
Calculate the measure that this module represents.
|
double[] |
countsForTargets()
Gets the number of predicted, actual pairs for each target.
|
void |
evaluateForInstance(List<weka.classifiers.evaluation.NumericPrediction> forecasts,
weka.core.Instance inst)
Evaluate the given forecast(s) with respect to the given
test instance.
|
String |
getDefinition()
Return the mathematical formula that this
evaluation module computes.
|
String |
getDescription()
Return the longer (single sentence) description
of this evaluation module
|
List<Double> |
getErrorsForTarget(String targetName)
Get a list of the errors for the supplied target
|
String |
getEvalName()
Return the short identifying name of this evaluation module
|
List<List<weka.classifiers.evaluation.NumericPrediction>> |
getPredictionsForAllTargets()
Gets the predictions for all targets
|
List<weka.classifiers.evaluation.NumericPrediction> |
getPredictionsForTarget(String targetName)
Get a list of predictions (plus actuals if known) for the supplied target
|
void |
reset()
Reset this module
|
String |
toString()
Gets a textual description of this module : getDescription() + getEvalName()
|
String |
toSummaryString()
Return the summary description of the computed measure for
each target.
|
getModule, getModuleList, getTargetFields, setTargetFieldspublic void reset()
reset in class TSEvalModulepublic String getEvalName()
getEvalName in class TSEvalModulepublic String getDescription()
getDescription in class TSEvalModulepublic String getDefinition()
getDefinition in class TSEvalModulepublic String toString()
public void evaluateForInstance(List<weka.classifiers.evaluation.NumericPrediction> forecasts, weka.core.Instance inst) throws Exception
evaluateForInstance in class TSEvalModuleforecasts - 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 double[] calculateMeasure()
throws Exception
calculateMeasure in class TSEvalModuleException - if the measure can't be computed for some reason.public double[] countsForTargets()
throws Exception
Exceptionpublic List<Double> getErrorsForTarget(String targetName) throws IllegalArgumentException
targetName - the target to get the errors forIllegalArgumentException - if the target name is unknownpublic List<weka.classifiers.evaluation.NumericPrediction> getPredictionsForTarget(String targetName) throws IllegalArgumentException
targetName - the target to get predictions forIllegalArgumentException - if the target name is unknownpublic List<List<weka.classifiers.evaluation.NumericPrediction>> getPredictionsForAllTargets()
public String toSummaryString() throws Exception
TSEvalModuletoSummaryString in class TSEvalModuleException - if the measure can't be computed for some reason.Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.