Repository navigation
Conversation
Co-authored-by: Lock file bot <[email protected]> Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]>
Co-authored-by: Jérémie du Boisberranger <[email protected]>
…cikit-learn#34158) Co-authored-by: Jérémie du Boisberranger <[email protected]>
…34209) Co-authored-by: Lock file bot <[email protected]>
…34207) Co-authored-by: Lock file bot <[email protected]>
…arn#34208) Co-authored-by: Lock file bot <[email protected]>
Co-authored-by: Lock file bot <[email protected]>
…ifier as much as 2-3× faster (scikit-learn#34187)
…#34211) Co-authored-by: Anne Beyer <[email protected]>
…xperience Team (scikit-learn#34205) Co-authored-by: Jérémie du Boisberranger <[email protected]>
…isionBoundaryDisplay` (scikit-learn#34092)
Co-authored-by: Adrin Jalali <[email protected]> Co-authored-by: Omar Salman <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
Co-authored-by: Stefanie Senger <[email protected]> Co-authored-by: Gael Varoquaux <[email protected]>
…o O(n) for classification losses (scikit-learn#32911) Co-authored-by: Omar Salman <[email protected]>
…4767) Co-authored-by: Anne Beyer <[email protected]>
Co-authored-by: Loïc Estève <[email protected]>
…n#34763) Co-authored-by: Lock file bot <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
…34803) Co-authored-by: Lock file bot <[email protected]>
…34805) Co-authored-by: Lock file bot <[email protected]>
…rt up to 2**24 possible categories (scikit-learn#33972)
Co-authored-by: Lock file bot <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]>
…arn#34804) Co-authored-by: Lock file bot <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]>
Port the integration tests from scikit-learn#32873 onto current main. The library fixes from that PR appear to already be covered by later main changes, so this only adds the tests (with small adaptations for current helpers and a numpy-baseline y_np fix in the regression scorer test). Co-authored-by: Olivier Grisel <[email protected]>
Remove the standalone test added from scikit-learn#32873 and assert that an invalid pos_label is ignored on the existing multiclass _get_response_values coverage. Co-authored-by: Olivier Grisel <[email protected]>
Replace the XXX in test_cross_validate_array_api_pipeline with the policy already used by LinearClassifierMixin and the common Array API checks: string class labels stay NumPy on CPU; integer class ids follow X. Also compare predict outputs to the NumPy baseline. Co-authored-by: Olivier Grisel <[email protected]>
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
See also scikit-learn#32873.
This extracts the integration tests from scikit-learn#32873 onto current
main. The library changes from that PR are not re-applied: mixed-namespace handling in Ridge, LDA, and_check_reg_targetsalready landed independently, and the new tests pass without those diffs.What does this implement/fix? Explain your changes.
Adds Array API integration tests for composing estimators, scorers, and
cross_validate:test_classification_scorer_array_api_complianceandtest_regression_scorer_array_api_complianceexercisecheck_scoring/_Scorerwith Array APIX(and mixedynamespaces / string labels). Common estimator and metric Array API checks do not cover this scorer path (predict/predict_proba/decision_function→_get_response_values→ metric).test_cross_validate_array_api_pipelinechecks the usual “onlyXis moved onto device” pipeline pattern (FunctionTransformer+ estimator), multi-scorer CV, numeric agreement with NumPy, and device/dtype of returned estimators’ predictions. Existingcross_validateArray API coverage is a mixed-input smoke test onLogisticRegressiononly.The narrower
_get_response_valuesmulticlasspos_labelcheck from scikit-learn#32873 is folded intotest_get_response_values_multiclass(invalidpos_labelis ignored, predictions unchanged).Introduce yourself
Follow-up from scikit-learn#32873 (ogrisel).
AI usage disclosure
I used AI assistance for:
This pull request includes code written with the assistance of AI.
The code has not yet been reviewed by a human.
Any other comments?
No changelog entry: tests only.
Locally, with the
pylatest_conda_forge_mkllockfile env andSCIPY_ARRAY_API=1: 188 passed, 250 skipped (unavailable devices/namespaces such as CUDA/CuPy/dpnp).