|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.timeseries.eval.TSEvalModule
weka.classifiers.timeseries.eval.ErrorModule
public class ErrorModule
Constructor Summary | |
---|---|
ErrorModule()
|
Method Summary | |
---|---|
double[] |
calculateMeasure()
Calculate the measure that this module represents. |
double[] |
countsForTargets()
|
void |
evaluateForInstance(java.util.List<NumericPrediction> forecasts,
Instance inst)
Evaluate the given forecast(s) with respect to the given test instance. |
java.lang.String |
getDefinition()
Return the mathematical formula that this evaluation module computes. |
java.lang.String |
getDescription()
Return the longer (single sentence) description of this evaluation module |
java.util.List<java.lang.Double> |
getErrorsForTarget(java.lang.String targetName)
|
java.lang.String |
getEvalName()
Return the short identifying name of this evaluation module |
java.util.List<java.util.List<NumericPrediction>> |
getPredictionsForAllTargets()
|
java.util.List<NumericPrediction> |
getPredictionsForTarget(java.lang.String targetName)
|
void |
reset()
Reset the module |
java.lang.String |
toString()
|
java.lang.String |
toSummaryString()
Return the summary description of the computed measure for each target. |
Methods inherited from class weka.classifiers.timeseries.eval.TSEvalModule |
---|
getModule, getModuleList, getTargetFields, setTargetFields |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ErrorModule()
Method Detail |
---|
public void reset()
TSEvalModule
reset
in class TSEvalModule
public java.lang.String getEvalName()
TSEvalModule
getEvalName
in class TSEvalModule
public java.lang.String getDescription()
TSEvalModule
getDescription
in class TSEvalModule
public java.lang.String getDefinition()
TSEvalModule
getDefinition
in class TSEvalModule
public java.lang.String toString()
toString
in class java.lang.Object
public void evaluateForInstance(java.util.List<NumericPrediction> forecasts, Instance inst) throws java.lang.Exception
TSEvalModule
evaluateForInstance
in class TSEvalModule
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.
java.lang.Exception
- if the evaluation can't be completed for some
reason.public double[] calculateMeasure() throws java.lang.Exception
TSEvalModule
calculateMeasure
in class TSEvalModule
java.lang.Exception
- if the measure can't be computed for some reason.public double[] countsForTargets() throws java.lang.Exception
java.lang.Exception
public java.util.List<java.lang.Double> getErrorsForTarget(java.lang.String targetName) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.util.List<NumericPrediction> getPredictionsForTarget(java.lang.String targetName) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.util.List<java.util.List<NumericPrediction>> getPredictionsForAllTargets()
public java.lang.String toSummaryString() throws java.lang.Exception
TSEvalModule
toSummaryString
in class TSEvalModule
java.lang.Exception
- if the measure can't be computed for some reason.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |