facebookresearch / Kats

Kats, a kit to analyze time series data, a lightweight, easy-to-use, generalizable, and extendable framework to perform time series analysis, from understanding the key statistics and characteristics, detecting change points and anomalies, to forecasting future trends.
MIT License
4.88k stars 534 forks source link

not able to import GetMetaData #265

Closed rvipandey closed 1 year ago

rvipandey commented 1 year ago

Hi Everyone,

I am not able to import from kats.models.metalearner.get_metadata import GetMetaData, getting below error

ImportError: cannot import name '_mul_broadcast_shape' from 'gpytorch.utils.broadcasting' (/opt/conda/lib/python3.9/site-packages/gpytorch/utils/broadcasting.py)

Can anyone suggest me how to resolve this issue? I tried to optimize https://github.com/facebookresearch/Kats/blob/main/kats/models/metalearner/get_metadata.py file but getting same issue.

Regards, Ravi

yangbk560 commented 1 year ago

It seems pretty wired to me that IIRC, GetMetaData does not reply on gpytorch. @peiyizhang, any idea?

yangbk560 commented 1 year ago

It will be great if you can share the snippet of the error message to help us debug. Thanks!

rvipandey commented 1 year ago

Hi @yangbk560 Thank you for your reply. After research i am able to solve this issue. Issue with gpytorch but when i downloaded a stable version, the issue is resolved. pip install gpytorch==1.8.1

Regards, Ravi