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
[ENH] test that set_params
recognizes unique suffixes as aliases for full parameter string
#2931
Conversation
Problem with the first draft: if Added tests for this. |
set_params
to recognize unique suffixes as aliases for full parameter stringset_params
to recognize unique suffixes as aliases for full parameter string
hm, maybe it is best if this change is made only in |
…arameter string (#229) Mirror of sktime/sktime#2931 This PR introduces experimental functionality to `set_params` to enable it to recognize unique suffixes as aliases for full parameter strings. That is, in the example in sktime/sktime#2929, it enables `set_params` - and, in consequence, the `param_grid` of grid search - to recognize `max_depth` instead of `forecaster__forecast__estimator__max_depth`. This is primarily meant as convenience sugar for the user of grid search or, more generally, `set_params`. Contains tests for both nested parameter setting behaviour, as well as parameter key aliasing in nested composites.
set_params
to recognize unique suffixes as aliases for full parameter stringset_params
recognizes unique suffixes as aliases for full parameter string
Updated this PR as the change is now in |
Update: The logic in this PR became obsolete after merging it upstream in
scikit-base 0.6.1
, seesktime/skbase#229
The PR still adds the tests in
sktime
, with ascikit-base
version condition, but does not add the logic anymore.This PR introduces experimental functionality to
set_params
to enable it to recognize unique suffixes as aliases for full parameter strings.That is, in the example in #2929, it enables
set_params
- and, in consequence, theparam_grid
of grid search - to recognizemax_depth
instead offorecaster__forecast__estimator__max_depth
.This is primarily meant as convenience sugar for the user of grid search or, more generally,
set_params
.Contains tests for both nested parameter setting behaviour, as well as parameter key aliasing in nested composites.