Skip to content

chore: Replace cross_validation with CrossValidationReport in warnings #1601

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

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class HighClassImbalanceTooFewExamplesWarning(TrainTestSplitWarning):
"fewer than 100 examples in the test set. In this case, using train_test_split "
"may not be a good idea because of high variability in the scores obtained on "
"the test set. We suggest three options to tackle this challenge: you can "
"increase test_size, collect more data, or use skore's cross_validate function."
"increase test_size, collect more data, or use skore's CrossValidationReport "
"with the `cv_splitter` parameter of your choice. "
)

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class HighClassImbalanceWarning(TrainTestSplitWarning):
"case, using train_test_split may not be a good idea because of high "
"variability in the scores obtained on the test set. "
"To tackle this challenge we suggest to use skore's "
"cross_validate function."
"CrossValidationReport with the `cv_splitter` parameter "
"of your choice. "
)

@staticmethod
Expand Down
Loading