TST raise explicit error when tags are missing#30248
Merged
glemaitre merged 3 commits intoscikit-learn:mainfrom Nov 12, 2024
Merged
TST raise explicit error when tags are missing#30248glemaitre merged 3 commits intoscikit-learn:mainfrom
glemaitre merged 3 commits intoscikit-learn:mainfrom
Conversation
thomasjpfan
reviewed
Nov 12, 2024
|
|
||
|
|
||
| def _yield_api_checks(estimator): | ||
| if not isinstance(estimator, BaseEstimator): |
Member
There was a problem hiding this comment.
Did we made the decision to only really support estimators that inherit from BaseEstimator? If so, is it documented somewhere so third-party estimator developers can know.
Member
Author
There was a problem hiding this comment.
Yes, documented:
scikit-learn/doc/developers/develop.rst
Lines 95 to 98 in 296aba8
And the example:
scikit-learn/doc/developers/develop.rst
Lines 313 to 344 in 296aba8
| yield sparse_format + "_64", X | ||
|
|
||
|
|
||
| @ignore_warnings(category=FutureWarning) |
Member
There was a problem hiding this comment.
For other reviewers, this is just shifting the original test down.
thomasjpfan
approved these changes
Nov 12, 2024
glemaitre
approved these changes
Nov 12, 2024
jeremiedbb
pushed a commit
to glemaitre/scikit-learn
that referenced
this pull request
Nov 14, 2024
jeremiedbb
pushed a commit
that referenced
this pull request
Nov 14, 2024
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.
Fixes #30237
This adds an explicit error when tags are missing which would result in failure of collecting tests. This gives an explicit error on why the collection fails.