[MRG] ENH iForest - expose warm_start (#13451)#13496
[MRG] ENH iForest - expose warm_start (#13451)#13496adrinjalali merged 10 commits intoscikit-learn:masterfrom pmarko1711:iforest_warmstart
Conversation
|
Also needs an entry in the related |
* versionadded=0.21 * adition in whatsnew * test using iris dataset
albertcthomas
left a comment
There was a problem hiding this comment.
Thanks for the PR @petibear
smaller dataset for testing Co-Authored-By: petibear <40757147+petibear@users.noreply.github.com>
|
I don't understand why the two test pipelines fail. Does it have something with my commits? |
|
Try to pull and merge master? I think I had the same CI fail a few days ago |
|
@NicolasHug Sorry, I'm new to this and don't want to mess things up. Where shall I try to pull and merge master, pls? |
|
add the original repo as a separate remote: fetch the remote merge upstream's branch into your branch (while being in your branch) |
|
Many thanks, I understand now. There is nothing to be merged with though. For now. |
|
@petibear You're not responsible for the CI fails, I opened #13506 |
NicolasHug
left a comment
There was a problem hiding this comment.
Looks good.
I'm not sure if we should parametrize the test_warm_start_* tests in test_bagging.py with IForest now, or replicate them in test_iforest.py, or consider that the current test_bagging.py (which uses BaggingClassifier) is enough anyway. @adrinjalali ?
|
@petibear Since #13506 is merged now you can try committing an empty commit to trigger the CI again (or just address the review above of course) Checks should go green |
It's more like if you know what it's supposed to do, and you read the docstring, then it's very clear that it conveys the message. But it's cryptic enough that if you don't know, then you may not understand how it works. Maybe add it to As for the tests, I'm okay with what the PR has, since for the rest tests are done in the parent class. No strong feelings there. |
jnothman
left a comment
There was a problem hiding this comment.
I agree with @adrinjalali that the parameter description could be improved
|
I could then draft an addition to Furthermore, since the text would then specifically refer to |
|
I don't think it's relevant to add anything to (For the same reason the sentence about shallow trees doesn't need an update IMO). I would suggest to update instead the isolation forest section of |
|
Fair enough, I've added an entry to Is there anything else to be done here? |
albertcthomas
left a comment
There was a problem hiding this comment.
LGTM. Thanks @petibear
|
could you please merge master again and fix the merge conflicts? You're getting unlucky on this one. |
|
That's not a problem, at least I learn the process. |
|
ok, merged, pushed, hopefully all good now |
|
Thanks @petibear |
|
Many thanks too for all the help, @adrinjalali & the rest of you guys. Happy to have contributed and to have learnt something here |
) * ENH iForest - expose warm_start (scikit-learn#13451) * Incorporates comments from PR scikit-learn#13496 * versionadded=0.21 * adition in whatsnew * test using iris dataset * Update sklearn/ensemble/tests/test_iforest.py smaller dataset for testing Co-Authored-By: petibear <40757147+petibear@users.noreply.github.com> * Trigger CI * Corrected the PR reference * doc entry on warm_start + renamed the test * Corrections in the doc example * comments made inline in the doc example
…learn#13496)" This reverts commit c7402a9.
…learn#13496)" This reverts commit c7402a9.
) * ENH iForest - expose warm_start (scikit-learn#13451) * Incorporates comments from PR scikit-learn#13496 * versionadded=0.21 * adition in whatsnew * test using iris dataset * Update sklearn/ensemble/tests/test_iforest.py smaller dataset for testing Co-Authored-By: petibear <40757147+petibear@users.noreply.github.com> * Trigger CI * Corrected the PR reference * doc entry on warm_start + renamed the test * Corrections in the doc example * comments made inline in the doc example
Reference Issues/PRs
Fixes #13451
What does this implement/fix? Explain your changes.
This PR exposes
warm_startin thesklearn.ensemble.IsolationForest.It also adds a test
sklearn/ensemble/tests/test_iforest.pyto check whether iterative addition of iTrees to an iForest works as expected.Any other comments?
Shouldn't there be a
.. versionadded:: 0.??added, please? If so, what number?