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

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

Opened this issue · 1 comments

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!

I also face to this problem...