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

Warning: deprecated lags_grid argument #313

Closed
g1za opened this issue Jun 13, 2024 · 1 comment
Closed

Warning: deprecated lags_grid argument #313

g1za opened this issue Jun 13, 2024 · 1 comment

Comments

@g1za
Copy link
Contributor

g1za commented Jun 13, 2024

Describe the bug
When running model-tune, in the log I can see:

/usr/local/lib/python3.11/dist-packages/skforecast/model_selection/model_selection.py:1346: UserWarning:

The 'lags_grid' argument is deprecated and will be removed in a future version. Use the 'search_space' argument to define the candidate values for the lags. Example: {'lags' : trial.suggest_categorical('lags', [3, 5])}

Forecaster refitted using the best-found lags and parameters, and the whole data set:
Lags: [ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48]
Parameters: {'n_neighbors': 14, 'leaf_size': 37, 'weights': 'uniform'}
Backtesting metric: -0.21432647830733909

Home Assistant installation type
Core 2024.6.2
Supervisor 2024.06.0
Operating System 12.3
Frontend 20240610.0

Your hardware

  • OS: HA OS
  • Architecture: virtual

EMHASS installation type

  • Add-on
@davidusb-geek
Copy link
Owner

I thanks for remarking this.
This is already solved in the current code but not yet released. So it will be fixed in the following release

@g1za g1za closed this as completed Jun 14, 2024
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

2 participants