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

[ENH] retain config after clone, add config to configure whether to clone config #257

Merged
merged 6 commits into from
Jan 3, 2024

Conversation

fkiraly
Copy link
Contributor

@fkiraly fkiraly commented Dec 30, 2023

This PR ensures that set config fields are cloned, when using clone.

This behaviour can be reverted to current via a new config clone_config.

Related: sktime/sktime#5676

An important question: is the current behaviour close enough to being a bug, or very unexpected, as to not require deprecation, because we treat this as a bugfix?

Or is it an unexpected change, which would require deprecation?

An example would be, (a) first configuring an estimator via set_config, e.g., parallelization, (b) then wrapping it in a composite. This procedure would turn off an configs in the internally cloned estimator.
To me, this seems like a "bug" rather than "can be expected".

@fkiraly fkiraly added bug Something isn't working implementing framework Implementing core skbase framework labels Dec 30, 2023
Copy link

codecov bot commented Dec 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b2b1826) 83.94% compared to head (75bc92a) 84.16%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #257      +/-   ##
==========================================
+ Coverage   83.94%   84.16%   +0.21%     
==========================================
  Files          43       43              
  Lines        2922     2924       +2     
==========================================
+ Hits         2453     2461       +8     
+ Misses        469      463       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fkiraly fkiraly merged commit b0b7e76 into main Jan 3, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working implementing framework Implementing core skbase framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant