erykml / Python-for-Finance-Cookbook-2E

The repository of "Python for Finance Cookbook" 2nd edition
MIT License
171 stars 129 forks source link

AttributeError: 'Trainer' object has no attribute 'tuner' #6

Open caliskanuzay opened 1 year ago

caliskanuzay commented 1 year ago

Dear Eryk, Thank you very much for the wonderful book and support. I am trying to run DeepAR model to forecast stock prices and I am stuck at step 9, at this command: res = trainer.tuner.lr_find(...) . I am getting this error: "AttributeError: 'Trainer' object has no attribute 'tuner'". I am suspecting that there has been a change in pytorch lightning that "tuner" has been decoupled from "trainer". But I am a beginner and I have no idea what this decoupling means and how to fix it. Do you have any suggestions about this? Thanks a lot for your time!

Persoff1 commented 6 months ago

I also face to this problem...