Skip to content

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

Merged
janezd merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/owcalibratedlearner-base-learner-modify
Oct 25, 2024
Merged

[FIX] Calibrated Learner: Prevent in place modification of base learner#6917
janezd merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/owcalibratedlearner-base-learner-modify

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

@codecov
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 124 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
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