predict.AutomaticTimeSeries.Rd
Similar to other predict methods, this function predicts fitted values from a fitted "hanaml.AutomaticTimeSeries" object.
# S3 method for AutomaticTimeSeries
predict(model, data, key, exog = NULL)
S3
methods
R6Class
An "hanaml.AutomaticTimeSeries" object for prediction.
DataFrame
DataFrame containting the data.
character
Specifies the column that represents the ordering of time-series data.
list/vector of characters, optional
Specifies the exogenous variables for time-series data.
Defaults to all non-key, non-endog columns in data
.
Predicted values are returned as a DataFrame, structured as follows.
1st column: Data type and name same as the 1st column of data
.
2nd column: SCORE, predicted values.
Assume we have df.fit for training, df.predict for prediction.
> auto.ts <- hanaml.AutomaticTimeSeries(data=df.fit,
key="ID",
endog="SERIES"
generations=5,
population.size=5,
progress.indicator.id = "AUTOML_TS_TEST")
If we want to predict:
> pre.res <- predict(model=auto.ts,
data=df.predict,
key="ID")
The output could be achieved by the following lines:
> print(pre.res$Collect())