Ananya Lohani
09/05/2024, 11:15 AMMarco
09/05/2024, 1:06 PMimport pandas as pd
from neuralforecast import NeuralForecast
from neuralforecast.models import Informer
model = Informer(h=12,
input_size=24,
futr_exog_list=[var1,var2])
nf = NeuralForecast(
models=[model],
freq=your_data_freq
)
nf.fit(df=training_set)
forecasts = nf.predict(
forecasts.to_csv(path)
The documentation for Informer is here.Ananya Lohani
09/05/2024, 1:37 PMMarco
09/05/2024, 2:15 PMds
and the target column to be called y
. Maybe changing those column names will make it easierAnanya Lohani
09/05/2024, 3:31 PMMarco
09/05/2024, 5:49 PMunique_id
column that identifies each series. If you have a single series, the column should have a constant value. Please, read our quickstart guide to get started with neuralforecast.Ananya Lohani
09/05/2024, 5:52 PM