Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] KeyError: 'autormok' on loading #1166

Closed
elephaint opened this issue Sep 30, 2024 Discussed in #1165 · 0 comments · Fixed by #1167
Closed

[BUG] KeyError: 'autormok' on loading #1166

elephaint opened this issue Sep 30, 2024 Discussed in #1165 · 0 comments · Fixed by #1167
Assignees

Comments

@elephaint
Copy link
Contributor

Discussed in #1165

Originally posted by aiv1 September 30, 2024
I've saved and loaded trained model as in tutorial. Got following error:

KeyError Traceback (most recent call last)
Cell In[51], line 1
----> 1 nf2 = NeuralForecast.load(path='./checkpoints/test_run/')
2 Y_hat_df = nf2.predict().reset_index()
3 Y_hat_df.head()

File c:\Users\mk\micromamba\envs\neuralforecast\Lib\site-packages\neuralforecast\core.py:1507, in NeuralForecast.load(path, verbose, **kwargs)
1505 model_name = "".join(model.split("")[:-1])
1506 model_class_name = alias_to_model.get(model_name, model_name)
-> 1507 loaded_model = MODEL_FILENAME_DICT[model_class_name].load(
1508 f"{path}/{model}", **kwargs
1509 )
1510 loaded_model.alias = model_name
1511 models.append(loaded_model)

KeyError: 'autormok'

@elephaint elephaint self-assigned this Sep 30, 2024
@elephaint elephaint linked a pull request Sep 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant