Skip to content

[MRG] ENH Cache enabling in Pipeline #281

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

Merged
merged 4 commits into from
Apr 28, 2017

Conversation

glemaitre
Copy link
Member

Reference Issue

Fixed #280

What does this implement/fix? Explain your changes.

Allow for caching Transformer and Sampler within a Pipeline.

Any other comments?

@codecov
Copy link

codecov bot commented Mar 31, 2017

Codecov Report

Merging #281 into master will increase coverage by 0.04%.
The diff coverage is 98.93%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #281      +/-   ##
==========================================
+ Coverage   98.27%   98.32%   +0.04%     
==========================================
  Files          58       58              
  Lines        3427     3703     +276     
==========================================
+ Hits         3368     3641     +273     
- Misses         59       62       +3
Impacted Files Coverage Δ
imblearn/pipeline.py 97.8% <96.8%> (-0.1%) ⬇️
imblearn/tests/test_pipeline.py 99.12% <99.64%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ca3037...a80da18. Read the comment docs.

@glemaitre
Copy link
Member Author

@chkoar you can already have a look. I have to check if there is any issue with the caching of the sampler.

@glemaitre glemaitre changed the title [WIP] ENH Cache enabling in Pipeline [MRG] ENH Cache enabling in Pipeline Mar 31, 2017
@glemaitre
Copy link
Member Author

@chkoar I added the missing test

from sklearn.externals import six
from sklearn.externals.joblib import Memory
from sklearn.utils import tosequence
from sklearn.utils.metaestimators import if_delegate_has_method

__all__ = ['Pipeline']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add make_pipeline because I have forgotten?

@chkoar
Copy link
Member

chkoar commented Apr 3, 2017

That is a great addition Guillaume! I don't have the time to review this great PR but I think that since the tests are passing we could easily merge it.

@glemaitre
Copy link
Member Author

I took the scikit-learn test and add your additional test as well. so it should be fine.

@glemaitre glemaitre merged commit b874c87 into scikit-learn-contrib:master Apr 28, 2017
glemaitre added a commit to glemaitre/imbalanced-learn that referenced this pull request Jun 15, 2017
* ENH add cache for transformer with test from scikit-learn

* DOC improve the doc

* TST add sampler test

* ENH add make_pipeline in the import
glemaitre added a commit to glemaitre/imbalanced-learn that referenced this pull request Jun 15, 2017
* ENH add cache for transformer with test from scikit-learn

* DOC improve the doc

* TST add sampler test

* ENH add make_pipeline in the import
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.

Allow caching in Pipeline for sampler
2 participants