Skip to contents

Predict for TFT

Usage

# S3 method for tft_result
predict(object, new_data = NULL, ..., past_data = NULL)

Arguments

object

a model object for which prediction is desired.

new_data

A data.frame() containing a dataset to generate predictions for. In general it's used to pass static and known information to generate forecasts.

...

other arguments passed to the predict.luz_module_fitted().

past_data

A data.frame() with past information for creating the predictions. It should include at least lookback values - but can be more. It's concatenated with new_data before passing forward. If NULL, the data used to train the model is used.