Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 1.6 KB

pytorch_forecasting.rst

File metadata and controls

23 lines (17 loc) · 1.6 KB

PyTorch Forecasting

PyTorch Forecasting provides the models and data loading for the tabular_forecasting task in Flash. As with all of our tasks, you won't typically interact with the components from PyTorch Forecasting directly. However, PyTorch Forecasting provides some built-in plotting and analysis methods that are different for each model which cannot be used directly with the ~flash.tabular.forecasting.model.TabularForecaster. Instead, you can access the PyTorch Forecasting model object using the ~flash.tabular.forecasting.model.TabularForecaster.pytorch_forecasting_model attribute. In addition, we provide the ~flash.core.integrations.pytorch_forecasting.transforms.convert_predictions utility to convert predictions from the Flash format into the expected format. With these, you can train your model and perform inference using Flash but still make use of the plotting and analysis tools built in to PyTorch Forecasting.

Here's an example, plotting the predictions and interpretation analysis from the NBeats model trained in the tabular_forecasting documentation:

../../../examples/tabular/forecasting_interpretable.py

Here's the visualization:

image