unit8co / darts

A python library for user-friendly forecasting and anomaly detection on time series.
https://unit8co.github.io/darts/
Apache License 2.0
8.12k stars 885 forks source link

[BUG] Cannot import TBATS #1724

Closed edevog closed 1 year ago

edevog commented 1 year ago

Describe the bug When I try to run: from darts.models.forecasting.tbats_model import TBATS

I get the error:

ModuleNotFoundError: No module named 'darts.models.forecasting.tbats_model'

System (please complete the following information):

Additional context I tried updating to 0.21.0, but the conda install just hangs and the pip install only gives 0.20.0

JanFidor commented 1 year ago

Hi @edevog ! Have you tried using this import from darts.models import TBATS ? I think that going further than darts.models will lead you to specific implementations which might not be the actual models intended for use

alexcolpitts96 commented 1 year ago

Both of the following worked for me with Python 3.10: from darts.models import TBATS from darts.models.forecasting.tbats_model import TBATS

I will suggest you create a new conda environment and try reinstalling.