weka.classifiers.timeseries.eval
Class DACModule

java.lang.Object
  extended by weka.classifiers.timeseries.eval.TSEvalModule
      extended by weka.classifiers.timeseries.eval.ErrorModule
          extended by weka.classifiers.timeseries.eval.DACModule

public class DACModule
extends ErrorModule


Constructor Summary
DACModule()
           
 
Method Summary
 double[] calculateMeasure()
          Calculate the measure that this module represents.
 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.lang.String getEvalName()
          Return the short identifying name of this evaluation module
 
Methods inherited from class weka.classifiers.timeseries.eval.ErrorModule
countsForTargets, getErrorsForTarget, getPredictionsForAllTargets, getPredictionsForTarget, reset, toString, toSummaryString
 
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

DACModule

public DACModule()
Method Detail

getEvalName

public java.lang.String getEvalName()
Description copied from class: TSEvalModule
Return the short identifying name of this evaluation module

Overrides:
getEvalName in class ErrorModule
Returns:
the short identifying name of this evaluation module

getDescription

public java.lang.String getDescription()
Description copied from class: TSEvalModule
Return the longer (single sentence) description of this evaluation module

Overrides:
getDescription in class ErrorModule
Returns:
the longer description of this module

getDefinition

public java.lang.String getDefinition()
Description copied from class: TSEvalModule
Return the mathematical formula that this evaluation module computes.

Overrides:
getDefinition in class ErrorModule
Returns:
the mathematical formula that this module computes.

evaluateForInstance

public void evaluateForInstance(java.util.List<NumericPrediction> forecasts,
                                Instance inst)
                         throws java.lang.Exception
Description copied from class: TSEvalModule
Evaluate the given forecast(s) with respect to the given test instance. Targets with missing values are ignored.

Overrides:
evaluateForInstance in class ErrorModule
Parameters:
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.
Throws:
java.lang.Exception - if the evaluation can't be completed for some reason.

calculateMeasure

public double[] calculateMeasure()
                          throws java.lang.Exception
Description copied from class: TSEvalModule
Calculate the measure that this module represents.

Overrides:
calculateMeasure in class ErrorModule
Returns:
the value of the measure for this module for each of the target(s).
Throws:
java.lang.Exception - if the measure can't be computed for some reason.