Package org.pentaho.di.forecasting
Class WekaForecastingModel
java.lang.Object
org.pentaho.di.forecasting.WekaForecastingModel
- All Implemented Interfaces:
Serializable
Abstract wrapper class for a Weka Forecaster.
- Version:
- $Revision$
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWekaForecastingModel(weka.classifiers.timeseries.TSForecaster model) Creates a newWekaForecastingModelinstance. -
Method Summary
Modifier and TypeMethodDescriptionGet a list of the field names that the encapsulated forecaster can predict.weka.core.InstancesGet the header of the Instances that was used build this Weka modelweka.classifiers.timeseries.TSForecastergetModel()Get the forecasting modelbooleanReturns true if the encapsulated model can and is producing confidence intervals on its forcasted values.voidsetHeader(weka.core.Instances header) Set the Instances headervoidsetLog(org.pentaho.di.core.logging.LogChannelInterface log) Set the log to pass on to the model.voidsetModel(weka.classifiers.timeseries.TSForecaster model) Set the forecasting modeltoString()Return a textual description of the encapsulated forecasting model
-
Field Details
-
m_model
protected weka.classifiers.timeseries.TSForecaster m_model
-
-
Constructor Details
-
WekaForecastingModel
public WekaForecastingModel(weka.classifiers.timeseries.TSForecaster model) Creates a newWekaForecastingModelinstance.- Parameters:
model- the actual Weka model to enacpsulate
-
-
Method Details
-
setLog
public void setLog(org.pentaho.di.core.logging.LogChannelInterface log) Set the log to pass on to the model. require logging.- Parameters:
log- the log to use
-
setHeader
public void setHeader(weka.core.Instances header) Set the Instances header- Parameters:
header- anInstancesvalue
-
getHeader
public weka.core.Instances getHeader()Get the header of the Instances that was used build this Weka model- Returns:
- an
Instancesvalue
-
setModel
public void setModel(weka.classifiers.timeseries.TSForecaster model) Set the forecasting model- Parameters:
model- the forecasting model
-
getModel
public weka.classifiers.timeseries.TSForecaster getModel()Get the forecasting model- Returns:
- the forecasting model as an object
-
getForecastedFields
Get a list of the field names that the encapsulated forecaster can predict.- Returns:
- a list of predicted field names.
-
isProducingConfidenceIntervals
public boolean isProducingConfidenceIntervals()Returns true if the encapsulated model can and is producing confidence intervals on its forcasted values.- Returns:
- true if the forecaster produces confidence limits for its predicted values
-
toString
Return a textual description of the encapsulated forecasting model
-