https://github.com/nixtla logo
#neural-forecast
Title
# neural-forecast
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!
g

Guillaume GALIE

09/25/2023, 2:33 PM
it doesn't work for me with 1.6.3 version
c

Cristian (Nixtla)

09/25/2023, 2:36 PM
Hi @Guillaume GALIE. We changed it back to
models
instead of
models_fitted
It was causing errors to a lot of users
Sorry for all the changes
g

Guillaume GALIE

09/25/2023, 2:42 PM
Ok thank you. will give a try. Is it possible to get the config from a saved model (.ckpt? )