predict.tft_result: Predict for TFT

View source: R/predict.R

predict.tft_resultR Documentation

Predict for TFT

Description

Predict for TFT

Usage

## S3 method for class '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.


mlverse/tft documentation built on June 19, 2022, 4:31 a.m.