https://github.com/nixtla logo
t

Taha

09/03/2022, 5:33 AM
Hello, Im trying to run the example on the
mlforecast
page but when I ran the line:
Copy code
from mlforecast import Forecast
I got the error:
Copy code
ImportError: cannot import name 'Forecast' from 'mlforecast'
I was able to import it using:
Copy code
from mlforecast.forecast import Forecast
but then the
Forecast
instantiation takes in params:
model
and
ts
(I realized this is an older version of mlforecast, namely, 0.1.0) When I run
!pip show mlforecast
, I see I have the latest version:
0.2.0
but when I run
mlforecast.__version__
I get
0.1.0
Am I doing something wrong? Thanks.
k

Kevin Kho

09/03/2022, 3:26 PM
I can recplicate. I don;'t think you're doing some wrong, I think the
___version___
attribute just wasnt updated but it has been recently on master
🙌 1
t

Taha

09/03/2022, 3:51 PM
Ahh, I see. Thanks Kevin!
2 Views