-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
TST Add TODO for global_dtype in sklearn/tree/tests/test_tree.py #22926
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
Conversation
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.
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
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.
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
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.
Thanks for your patience, @adam2392.
We decided to put such PRs on hold if attribute dtype aren't preserved estimator fitted attributes (which is the case for DecisionTree
-based estimator).
Hi @jjerphan ah okay. what is needed to preserve the dtype of the decision trees? Perhaps I can make a PR? |
The internals have been written in Cython for float64 (double). At a first sight, datastructures need to be to be ported to float32 but that's not trivial, see the structures' definition: https://github.com/scikit-learn/scikit-learn/blob/3850935ea610b5231720fdf865c837aeff79ab1b/sklearn/tree/_tree.pxd |
Reference Issues/PRs
See: #22881 (comment)
What does this implement/fix? Explain your changes.
Adds an inline comment for TODO behavior change for global_dtype tests in trees in the future.
Any other comments?
cc: @jjerphan