https://github.com/nixtla logo
s

Shreya Mathur

07/14/2023, 1:59 AM
Hi, I followed the exact same steps mentioned in the tutorials for Long horizon forecast - https://nixtla.github.io/neuralforecast/examples/longhorizon_with_nhits.html It was working fine earlier but now I'm getting an error in this step:
nf.models[0].results.get_best_result().config
Copy code
AttributeError: 'AutoNHITS' object has no attribute 'results'
Has there been any changes on this front recently as this was working earlier but now its not? Thanks.
k

Kin Gtz. Olivares

07/14/2023, 2:04 AM
c

Cristian (Nixtla)

07/14/2023, 2:05 AM
Yes there is a bug, thanks for finding it! The fitted models are now in models_fitted attribute, not in models. Can you index with the new name please? It has to be nf.models_fitted[0]...
👍 1
s

Shreya Mathur

07/14/2023, 2:06 AM
Yes it works when I use
nf.models_fitted[0].results.get_best_result().config
Thanks for the quick reply!