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

AutoLSTM.__init__() got an unexpected keyword argument 'callbacks' #922

Open
pranavvp16 opened this issue Mar 9, 2024 · 4 comments
Open

Comments

@pranavvp16
Copy link

pranavvp16 commented Mar 9, 2024

What happened + What you expected to happen

AutoLSTM class gives unexpected keyword argument error when passes with parameter callbacks. It should accept the parameter as mentioned in the docs

Versions / Dependencies

neuralforecast==1.9.4

Reproduction script

from neuralforecast.auto import AutoLSTM
model = AutoLSTM(num_samples = 10, callbacks = None)

Issue Severity

High: It blocks me from completing my task.

@pranavvp16 pranavvp16 added the bug label Mar 9, 2024
@JQGoh
Copy link
Contributor

JQGoh commented Mar 10, 2024

@pranavvp16

May I check what is the version of neuralforecast that you tested? Because there is no such version of 1.9.4

Using neuralforecast==1.6.4
Edit: Using a dev version of neuralforecast (beyond version 1.6.4)

from neuralforecast.auto import AutoLSTM
model = AutoLSTM(h=10, num_samples = 10, callbacks = None)

works fine without any errors. The issue with your proposed reproduction script is that it is missing the required parameter h.

@jmoralez
Copy link
Member

That's only on the dev version at the moment, it'll be available in the next release. Or you can install from github

@pranavvp16
Copy link
Author

gotcha, why are docs of neuralforecast ahead of actual package. Cause I was. trying to implement this parameter after reading the docs

@jmoralez
Copy link
Member

We haven't setup versioning in our new docs engine (I'm not sure if it's possible yet) and it's been a long time since the last release (~4 months). I'll leave this open as a reminder to try to setup the versioning.

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

No branches or pull requests

3 participants