Skip to content

DEP Deprecate getting binary tree stats - #34242

Merged
jeremiedbb merged 9 commits into
scikit-learn:mainfrom
itamarst:34232-deprecate
Jul 28, 2026
Merged

DEP Deprecate getting binary tree stats#34242
jeremiedbb merged 9 commits into
scikit-learn:mainfrom
itamarst:34232-deprecate

Conversation

@itamarst

@itamarst itamarst commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #34232

The reason to remove these is because of performance overhead.

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR. A couple of suggestions. Please also add a changelog entry. lgtm otherwise.

Comment thread sklearn/neighbors/tests/test_kd_tree.py
Comment thread sklearn/neighbors/_binary_tree.pxi.tp
@itamarst

Copy link
Copy Markdown
Contributor Author

Thank you, will address the comments next week.

@github-actions github-actions Bot added the CI:Linter failure The linter CI is failing on this PR label Jun 15, 2026
@itamarst
itamarst requested a review from jeremiedbb June 15, 2026 19:02
@itamarst

Copy link
Copy Markdown
Contributor Author

MyPy errors will hopefully be fixed by #34303

@AnneBeyer

Copy link
Copy Markdown
Contributor

The linting should be fixed via #34300 now, try merging with main.

@github-actions github-actions Bot removed the CI:Linter failure The linter CI is failing on this PR label Jun 16, 2026
@itamarst

Copy link
Copy Markdown
Contributor Author

Merged forward, it's green now.

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@itamarst

itamarst commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Anything left to do to get this merged?

@itamarst

Copy link
Copy Markdown
Contributor Author

Fixed conflicts and merged forward again.

@jeremiedbb
jeremiedbb merged commit 19b57ab into scikit-learn:main Jul 28, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate stats and number of calls tracking in KDTree/BallTree (or see if there's a way to speed-up, if useful)

4 participants