Repository navigation
Conversation
Usually a combination of: provide a benchmark in discussion; and add a test checking that the result with parallelism is equal to the result without. |
|
I've proposed some benchmarks; I'll post the results once I got them executed.. Let me know if you need other ones. |
|
Some first results got on a dataset of 10 000 samples. |
|
Here are some results I got on my latest runs (cc @jnothman). Medium dataset benchmark (i.e. a dataset of shape
|
The calibration function has to be defined outside of CalibratedClassifierCV.fit for pickling reasons. This defines it at the file level. It has been renamed and documented accordingly.
Large dataset benchmark (i.e. a dataset of shape
|
|
@jjerphan Those look like good results. May you provide the code you use for benchmarking? |
|
@thomasjpfan: Thanks ! The code is in |
|
@thomasjpfan: have you have time to perform those benchmark yourself? |
thomasjpfan
left a comment
There was a problem hiding this comment.
Thank you for the additional benchmark results. I am wondering if we need the benchmark script in the PR itself. Usually including the benchmark in a gist or the discussion is enough.
For multi-threaded algorithms, as they are using joblib.Parallel there might be some Parallel context nesting hence results aren't necessarily better.
That makes sense. It's nice that joblib handles most of the over subscription as well.
Co-authored-by: Thomas J. Fan <[email protected]>
This reverts commit da4ff25.
It can be found online here as a gist: - https://gist.github.com/jjerphan/4d10b9aad5573245bbd93da2e3fb1f23
Co-authored-by: Thomas J. Fan <[email protected]>
|
Hi @thomasjpfan, shall I ask someone to be a second reviewer for this PR? 🙂 |
|
Is it ready to be merged ? 🙂 |
|
It is ready and just needs another approval in order to be merged. |
|
@glemaitre If you are interested, this should be a pair-straight forward review. |
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
|
This message comes as a small follow-up: can this PR be merger? :) cc @glemaitre. |
ogrisel
left a comment
There was a problem hiding this comment.
Overall this LGTM. Here are two suggestions for improvements:
|
Thank you very much for your contribution @jjerphan! |
…n#17107) Co-authored-by: Thomas J. Fan <[email protected]>













Reference Issues/PRs
Fixes #17097.
What does this implement/fix? Explain your changes.
CalibratedClassifierCVfit estimator sequentially.This PR introduces
joblib.Parallelto calibrate estimators in parallel inCalibratedClassifierCV.fitParameters have been added to the constructor of
CalibratedClassifierCVto match the ones fromjoblib.Parallel.Any other comments?
This is my first contribution to scikit-learn.
I took some time to read the guidelines in the documentation, but I haven't found the kinds of tests such a contribution needs.