-
Notifications
You must be signed in to change notification settings - Fork 680
Deprecate max_depth=16 in RandomForest and add None support #7958
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
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
355eaf8
Deprecate max_deth=16 in RandomForest and add None support
Nzouh a083d6c
Merge remote-tracking branch 'upstream/main' into feature/max-depth-d…
Nzouh e7bde34
Address PR review: fix FutureWarning false positives for max_depth=16
Nzouh adcfa83
Merge branch 'main' into feature/max-depth-deprecate
Nzouh 6921658
Address CodeRabbit review: fix double warning in Dask and tighten max…
Nzouh 79f5e4b
Merge branch 'feature/max-depth-deprecate' of https://github.com/Nzou…
Nzouh 59f1b73
Update CHANGELOG to 26.06.00 for next development cycle
Nzouh 0ba7257
Address Style Checker (Linter) failures
Nzouh defd4d4
fix: Explicitly set max_depth=16 in tests to resolve FutureWarning fa…
Nzouh b340e9b
fix: add explicit max_depth to all remaining RF test initializations
Nzouh 91f2f1d
revert: remove changelog changes as requested by maintainer
Nzouh 67c6a23
Merge branch 'main' into feature/max-depth-deprecate
chyunsu3 5d51a13
style: apply ruff formatting and fix remaining max_depth test failures
Nzouh 3bea1f0
Revert "style: apply ruff formatting and fix remaining max_depth test…
chyunsu3 63b5778
Use pre-commit to make style fixes
chyunsu3 8177f4f
Undo changes to CHANGELOG.md
chyunsu3 adfb2ca
Update general testing infrastructure for RF deprecation
Nzouh 9484a91
Update SPDX copyright headers for modified files
Nzouh d8c66b7
Fix max_depth deprecation warning in test_fil.py (wide data test)
Nzouh c7e0a12
Harden devcontainer build with apt-get update retries
Nzouh 2938b1f
Revert changes to .devcontainer/Dockerfile
Nzouh 0013b70
Address PR review: simplify RF constructor, move warning to fit, and …
Nzouh 12442c9
Align Scikit-learn baseline hyperparameters in Dask RF tests
Nzouh 66de880
Merge branch 'main' into feature/max-depth-deprecate
Nzouh 9fe06fa
Address PR review comments: cleanup dead logic, fix whitespace, and a…
Nzouh 1ea64dc
Address all review comments: global warning filters with TODOs and cl…
Nzouh 7ff63b1
Final cleanup: Ensure all RandomForest tests have global filters with…
Nzouh eb9910b
Audit cleanup: Add missing TODO(26.08) comments to all warning filters.
Nzouh 55fca14
Merge branch 'main' into feature/max-depth-deprecate
chyunsu3 39342b5
Formatting fix
chyunsu3 3dfc806
fix(rf): re-enable FutureWarning in test_default_parameters
Nzouh 4daa59e
fix(rf): expect FutureWarning on fit() instead of get_params()
Nzouh 8e8be69
Merge branch 'main' into feature/max-depth-deprecate
chyunsu3 9a65eed
Merge remote-tracking branch 'upstream/main' into pr-7958-upstream
csadorf 064e496
Warn at fit not during __init__ for Dask estimators.
csadorf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -195,8 +195,10 @@ def test_mro(model): | |
|
|
||
|
|
||
| @pytest.mark.parametrize("model_name", list(models.keys())) | ||
| # ignore random forest float64 warnings | ||
| # ignore random forest float64 warnings and max_depth deprecation | ||
| @pytest.mark.filterwarnings("ignore:To use pickling or GPU-based") | ||
| # TODO(26.08): Remove this filter | ||
| @pytest.mark.filterwarnings("ignore:The default value of 'max_depth'") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a comment to every filter like this that we need to remove the filter within the 26.08 release. |
||
| def test_fit_function(dataset, model_name): | ||
| # This test ensures that our estimators return self after a call to fit | ||
| if model_name in [ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to explicitly convert
max_depth=<sentinel>tomax_depth=16within the_params_to_cpufunction.