is it predict the last step from kalman? from darts.datasets import AirPassengersDataset…
- User
is it predict the last step from kalman?
from darts.datasets import AirPassengersDataset from darts.models import KalmanForecaster from darts.utils.timeseries_generation import datetime_attribute_timeseries
series = AirPassengersDataset().load() model = KalmanForecaster(dim_x=12) model.fit(series) pred = model.predict(1) pred.values()
- Assistant
In the code you've written, you're using the
KalmanForecasterfrom the Darts library to predict the next time step of the AirPassengers dataset. Here's what each part of the code does:-
Load the series:
pythonseries = AirPassengersDataset().load()This loads the AirPassengers dataset, which is a monthly time series of the number of airline passengers from 1949 to 1960.
-
Instantiate the model:
python
-