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

[FIX] Calibrated Learner: Prevent in place modification of base learner #6917

Conversation

ales-erjavec
Copy link
Contributor

Issue

Fixes #6915

Description of changes
  • Never return base_learner instance from create_learner
  • Replace IdentityWrapper (which did not work) with copy.deepcopy of the instance.
Includes
  • Code changes
  • Tests
  • Documentation

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.40%. Comparing base (9497b39) to head (4e7e541).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6917   +/-   ##
=======================================
  Coverage   88.40%   88.40%           
=======================================
  Files         326      326           
  Lines       71971    71970    -1     
=======================================
+ Hits        63624    63626    +2     
+ Misses       8347     8344    -3     

@markotoplak markotoplak added this to the 3.38.0 milestone Oct 21, 2024
…earner

The instance's name is modified in place after.

Replace IdentityWrapper (which did not work) with copy.deepcopy of the instance.
@ales-erjavec ales-erjavec force-pushed the fixes/owcalibratedlearner-base-learner-modify branch from 9aa3e34 to 4e7e541 Compare October 25, 2024 06:53
@janezd janezd merged commit c27a803 into biolab:master Oct 25, 2024
25 of 28 checks passed
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 this pull request may close these issues.

Calibrated learner changes model names the wrong way
3 participants