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.05k stars 878 forks source link

RuntimeError: No precision set in model.fit() #1752

Closed ziyit closed 1 year ago

ziyit commented 1 year ago

Describe the bug "RuntimeError: No precision set" error observed (during model.fit(series)) while replicating the N-BEATS code from example (https://github.com/unit8co/darts/blob/master/examples/07-NBEATS-examples.ipynb).

To Reproduce Please follow example located at https://github.com/unit8co/darts/blob/master/examples/07-NBEATS-examples.ipynb.

Expected behavior model.fit() function allows single or multiple series fitting.

System (please complete the following information):

Additional context Add any other context about the problem here.

madtoinou commented 1 year ago

Hi,

It' probably a duplicate of #1718; the solution is to upgrade PyTorchLightning to a more recent version (2.0 or the version just before). Let me know if it works for you

ziyit commented 1 year ago

Thank you for the feedback. Kindly refer to #1718 per @madtoinou suggestion for solution, close this issue for now.