Skip to content

Chapter 4- 02-Baseline Forecasts using darts #41

Description

@taimoorkh

I am unable to import Naive Moving Average as i run the following code
from src.forecasting.baselines import NaiveMovingAverage

I am getting the following error:

ImportError Traceback (most recent call last)
Cell In[25], line 1
----> 1 from src.forecasting.baselines import NaiveMovingAverage

File ~\OneDrive\Desktop\thesis\book_reading\Modern-Time-Series-Forecasting\src\forecasting\baselines.py:2
1 import numpy as np
----> 2 from darts.models.forecasting.forecasting_model import LocalForecastingModel
3 from darts import TimeSeries
6 class NaiveMovingAverage(LocalForecastingModel):

ImportError: cannot import name 'LocalForecastingModel' from 'darts.models.forecasting.forecasting_model'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions