Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Workaround for dill IndexError #642

Merged
merged 1 commit into from
Mar 14, 2023
Merged

Conversation

mike0sv
Copy link
Contributor

@mike0sv mike0sv commented Mar 13, 2023

With new sklearn version, some methods of custom class implementations are wrapped with some sklearn magic (see sklearn.utils._SetOutputMixin). This breaks getsource function from dill.sources which we use to get object source code.

related uqfoundation/dill#581 closes #623

With new sklearn version, some methods of custom class implementations are wrapped with some sklearn magic (see `sklearn.utils._SetOutputMixin`). This breaks `getsource` function from `dill.sources` which we use to get object source code.

related uqfoundation/dill#581
closes #623
@mike0sv mike0sv requested a review from a team as a code owner March 13, 2023 22:06
@mike0sv mike0sv temporarily deployed to internal March 13, 2023 22:06 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Patch coverage: 28.57% and project coverage change: +1.62 🎉

Comparison is base (d6b9485) 84.43% compared to head (8319a1d) 86.05%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #642      +/-   ##
==========================================
+ Coverage   84.43%   86.05%   +1.62%     
==========================================
  Files         107      107              
  Lines        9733     9739       +6     
==========================================
+ Hits         8218     8381     +163     
+ Misses       1515     1358     -157     
Impacted Files Coverage Δ
mlem/ext.py 88.28% <ø> (ø)
mlem/contrib/flyio/meta.py 47.74% <16.66%> (-1.78%) ⬇️
mlem/utils/module.py 91.55% <100.00%> (ø)

... and 5 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@aguschin aguschin merged commit 6609613 into main Mar 14, 2023
@aguschin aguschin deleted the fix/dill-wrapped-index-error branch March 14, 2023 08:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error saving custom sklearn transformer and pipeline
2 participants