Repository navigation
Conversation
This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human.
This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human.
|
Thank you for opening your first pull request to scikit-learn! 🎉 To help get your contribution reviewed, please make sure that:
|
lcrmorin
marked this pull request as ready for review
October 7, 2026 13:47
lcrmorin
marked this pull request as draft
November 5, 2026 10:30
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Reference Issues/PRs
Related to #34946. Tests-only follow-up to the feedback on #35082.
What does this implement/fix? Explain your changes.
This starts with two small extensions to existing tests, in separate commits:
test_type_of_target: add StringDType binary, multiclass and multioutput targets. On older NumPy, dtype detection fails before downstream code can be exercised.test_check_array_numeric_error: add numeric-looking and non-numeric StringDType strings. Numeric-only validation should reject both with the existing string-input error.The goal is to allow Stringdtype to reach relevant estimators. This documents the failures without fixing them, with the goal to make estimator failure more explicit.
I reused existing tests functions with new example to limit line of code changes. The diff is +38/−2 across two files.
Validation
Local results for the two extended tests (including their existing cases):
The five additional StringDType cases are not collected on NumPy 1.x. Expected failures are not fixed bugs;
--runxfailexposes them as ordinary failures.AI usage disclosure
This pull request includes code written with the assistance of AI.
The code, texts were reviewed by a human.