|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.timeseries.eval.TSEvaluation
public class TSEvaluation
Constructor Summary | |
---|---|
TSEvaluation(Instances trainingData,
double testSplitSize)
|
|
TSEvaluation(Instances trainingData,
Instances testData)
|
Method Summary | |
---|---|
void |
evaluateForecaster(TSForecaster forecaster,
boolean buildModel,
java.io.PrintStream... progress)
|
void |
evaluateForecaster(TSForecaster forecaster,
java.io.PrintStream... progress)
Evaluate the supplied forecaster. |
static void |
evaluateForecaster(TSForecaster forecaster,
java.lang.String[] options)
|
void |
forecastFuture(TSForecaster forecaster,
Instances primeData)
|
boolean |
getEvaluateOnTestData()
|
boolean |
getEvaluateOnTrainingData()
|
java.util.List<TSEvalModule> |
getEvaluationModules()
|
boolean |
getForecastFuture()
|
ErrorModule |
getPredictionsForTestData(int stepNumber)
Get predictions for all targets for the specified step number on the test data |
ErrorModule |
getPredictionsForTrainingData(int stepNumber)
Get predictions for all targets for the specified step number on the training data |
boolean |
getPrimeForTestDataWithTestData()
|
int |
getPrimeWindowSize()
|
Instances |
getTestData()
|
Instances |
getTrainingData()
|
javax.swing.JPanel |
graphFutureForecastOnTesting(GraphDriver driver,
TSForecaster forecaster,
java.util.List<java.lang.String> targetNames)
|
javax.swing.JPanel |
graphFutureForecastOnTraining(GraphDriver driver,
TSForecaster forecaster,
java.util.List<java.lang.String> targetNames)
|
javax.swing.JPanel |
graphPredictionsForStepsOnTesting(GraphDriver driver,
TSForecaster forecaster,
java.lang.String targetName,
java.util.List<java.lang.Integer> stepsToPlot,
int instanceNumberOffset)
|
javax.swing.JPanel |
graphPredictionsForStepsOnTraining(GraphDriver driver,
TSForecaster forecaster,
java.lang.String targetName,
java.util.List<java.lang.Integer> stepsToPlot,
int instanceNumberOffset)
|
javax.swing.JPanel |
graphPredictionsForTargetsOnTesting(GraphDriver driver,
TSForecaster forecaster,
java.util.List<java.lang.String> graphTargets,
int graphStepNum,
int primeWindowSize)
|
javax.swing.JPanel |
graphPredictionsForTargetsOnTraining(GraphDriver driver,
TSForecaster forecaster,
java.util.List<java.lang.String> graphTargets,
int graphStepNum,
int instanceNumberOffset)
|
java.lang.String |
printFutureTestForecast(TSForecaster forecaster)
|
java.lang.String |
printFutureTrainingForecast(TSForecaster forecaster)
Print the forecasted values (for all targets) beyond the end of the training data |
java.lang.String |
printPredictionsForTestData(java.lang.String title,
java.lang.String targetName,
int stepAhead)
|
java.lang.String |
printPredictionsForTestData(java.lang.String title,
java.lang.String targetName,
int stepAhead,
int instanceNumberOffset)
|
java.lang.String |
printPredictionsForTrainingData(java.lang.String title,
java.lang.String targetName,
int stepAhead)
|
java.lang.String |
printPredictionsForTrainingData(java.lang.String title,
java.lang.String targetName,
int stepAhead,
int instanceNumberOffset)
|
void |
setEvaluateOnTestData(boolean evalOnTest)
|
void |
setEvaluateOnTrainingData(boolean evalOnTraining)
|
void |
setEvaluationModules(java.lang.String evalModNames)
|
void |
setForecastFuture(boolean future)
|
void |
setHorizon(int horizon)
|
void |
setPrimeForTestDataWithTestData(boolean p)
|
void |
setPrimeWindowSize(int primeSize)
|
void |
setRebuildModelAfterEachTestForecastStep(boolean r)
|
void |
setTestData(Instances testData)
|
void |
setTrainingData(Instances train)
|
java.lang.String |
toSummaryString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TSEvaluation(Instances trainingData, double testSplitSize) throws java.lang.Exception
java.lang.Exception
public TSEvaluation(Instances trainingData, Instances testData) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void setTrainingData(Instances train)
public void setTestData(Instances testData)
public Instances getTrainingData()
public Instances getTestData()
public void setEvaluateOnTrainingData(boolean evalOnTraining)
public boolean getEvaluateOnTrainingData()
public void setEvaluateOnTestData(boolean evalOnTest)
public boolean getEvaluateOnTestData()
public void setHorizon(int horizon)
public void setPrimeWindowSize(int primeSize)
public int getPrimeWindowSize()
public void setPrimeForTestDataWithTestData(boolean p)
public boolean getPrimeForTestDataWithTestData()
public void setRebuildModelAfterEachTestForecastStep(boolean r)
public void setForecastFuture(boolean future)
public boolean getForecastFuture()
public void setEvaluationModules(java.lang.String evalModNames) throws java.lang.Exception
java.lang.Exception
public java.util.List<TSEvalModule> getEvaluationModules()
public ErrorModule getPredictionsForTrainingData(int stepNumber) throws java.lang.Exception
stepNumber
- number of the step into the future to return predictions for
java.lang.Exception
- if there are no predictions available for the training
datapublic ErrorModule getPredictionsForTestData(int stepNumber) throws java.lang.Exception
stepNumber
- number of the step into the future to return predictions for
java.lang.Exception
- if there are no predictions available for the test
datapublic void evaluateForecaster(TSForecaster forecaster, java.io.PrintStream... progress) throws java.lang.Exception
forecaster
- the forecaster to evaluate
java.lang.Exception
- if something goes wrong during evaluationpublic void evaluateForecaster(TSForecaster forecaster, boolean buildModel, java.io.PrintStream... progress) throws java.lang.Exception
forecaster
- the forecaster to evaluatebuildModel
- true if the model is to be built (given that there is
a training data set to build it with)
java.lang.Exception
- if something goes wrong during evaluationpublic void forecastFuture(TSForecaster forecaster, Instances primeData) throws java.lang.Exception
java.lang.Exception
public static void evaluateForecaster(TSForecaster forecaster, java.lang.String[] options) throws java.lang.Exception
java.lang.Exception
public java.lang.String printFutureTestForecast(TSForecaster forecaster) throws java.lang.Exception
java.lang.Exception
public java.lang.String printFutureTrainingForecast(TSForecaster forecaster) throws java.lang.Exception
forecaster
- the forecaster
java.lang.Exception
public javax.swing.JPanel graphFutureForecastOnTraining(GraphDriver driver, TSForecaster forecaster, java.util.List<java.lang.String> targetNames) throws java.lang.Exception
java.lang.Exception
public javax.swing.JPanel graphFutureForecastOnTesting(GraphDriver driver, TSForecaster forecaster, java.util.List<java.lang.String> targetNames) throws java.lang.Exception
java.lang.Exception
public javax.swing.JPanel graphPredictionsForStepsOnTraining(GraphDriver driver, TSForecaster forecaster, java.lang.String targetName, java.util.List<java.lang.Integer> stepsToPlot, int instanceNumberOffset) throws java.lang.Exception
java.lang.Exception
public javax.swing.JPanel graphPredictionsForStepsOnTesting(GraphDriver driver, TSForecaster forecaster, java.lang.String targetName, java.util.List<java.lang.Integer> stepsToPlot, int instanceNumberOffset) throws java.lang.Exception
java.lang.Exception
public javax.swing.JPanel graphPredictionsForTargetsOnTraining(GraphDriver driver, TSForecaster forecaster, java.util.List<java.lang.String> graphTargets, int graphStepNum, int instanceNumberOffset) throws java.lang.Exception
java.lang.Exception
public javax.swing.JPanel graphPredictionsForTargetsOnTesting(GraphDriver driver, TSForecaster forecaster, java.util.List<java.lang.String> graphTargets, int graphStepNum, int primeWindowSize) throws java.lang.Exception
java.lang.Exception
public java.lang.String printPredictionsForTrainingData(java.lang.String title, java.lang.String targetName, int stepAhead) throws java.lang.Exception
java.lang.Exception
public java.lang.String printPredictionsForTrainingData(java.lang.String title, java.lang.String targetName, int stepAhead, int instanceNumberOffset) throws java.lang.Exception
java.lang.Exception
public java.lang.String printPredictionsForTestData(java.lang.String title, java.lang.String targetName, int stepAhead) throws java.lang.Exception
java.lang.Exception
public java.lang.String printPredictionsForTestData(java.lang.String title, java.lang.String targetName, int stepAhead, int instanceNumberOffset) throws java.lang.Exception
java.lang.Exception
public java.lang.String toSummaryString() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |