Remove warnings from skore.train_test_split
#1800
Replies: 4 comments
-
|
If inside our own examples we don't use our own function because it throws un-relevant warnings, doesn't it mean that we should change the warnings instead? |
Beta Was this translation helpful? Give feedback.
-
|
By "examples" I mostly meant doctests, not the full-blown examples. The issue is that in these doctests, the point is not to show the warnings, it's to showcase some other skore capability; so these warnings are parasitic, no matter what they might say. A fine way to solve this issue could also be to add |
Beta Was this translation helpful? Give feedback.
-
|
I prefer your second solution. Enabling to mute warnings in the function itself would mean that there are actual real-life use-cases, that are not too rare, where it's actually what should be done. |
Beta Was this translation helpful? Give feedback.
-
|
Thinking a bit more about it, I think the warnings have no place in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What would you like to say?
Many examples and tests end up using
sklearn'strain_test_splitbecause we know that skore's warnings are not relevant for the task at hand. We know that the warnings experience is sub-optimal in most cases.On the other hand,
skore.train_test_splitinnovates through theas_dictparameter, which would make train-test-splitting easier in many cases; so removingskore.train_test_splitwould be throwing out nice functionality.I would like to be able to use
skore.train_test_splitwithout having to worry about warnings. To solve this, I propose to add awarnflag,Falseby default, which controls whether data checks are run or not.Beta Was this translation helpful? Give feedback.
All reactions