ourownstory / neural_prophet

NeuralProphet: A simple forecasting package
https://neuralprophet.com
MIT License
3.87k stars 479 forks source link

KeyError pytorch_lightning.utilities.argparse_utils when use neuralprophet #1622

Open Aaron1993 opened 3 months ago

Aaron1993 commented 3 months ago

I use Neuralprophet for airline passenger forecast, when I run the code, there is an error named KeyError pytorch_lightning.utilities.argparse_utils. Is this problem due to version incompatibility?

In my environment, pytorch_lightning=1.9.5 neuralprophet=0.7.0 and torch=2.3.1 + cu121

ourownstory commented 2 months ago

Hi @Aaron1993 This sounds like an issue caused by Pytorch lightning. Do you mind sharing some details on this?

Aaron1993 commented 2 months ago

Thanks for your reply. I run the code for Airpassanger forecast, using django==4.1 as Web servers. Beginning, the code can run successfully, however, When the program is halfway through, this error occurs. image

image

pytorch_lightning=1.9.5 neuralprophet=0.7.0

ourownstory commented 2 months ago

@Aaron1993 Thank you. This may be an issue outside NeuralProphet, but if you can provide us with a minimal code snippet to reproduce the error using the current status of the library (Github main branch), I am happy to look into this!

Aaron1993 commented 2 months ago

If I set the parameters of neuralprophet, like learning_rate and n_changepoint, it works.