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)

Format

S3 methods

Arguments

model

R6Class
An "hanaml.AutomaticTimeSeries" object for prediction.

data

DataFrame
DataFrame containting the data.

key

character
Specifies the column that represents the ordering of time-series data.

exog

list/vector of characters, optional
Specifies the exogenous variables for time-series data.
Defaults to all non-key, non-endog columns in data.

Value

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.

Examples

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())