-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Open
Labels
Meta-issueGeneral issue associated to an identified list of tasksGeneral issue associated to an identified list of tasksModerateAnything that requires some knowledge of conventions and best practicesAnything that requires some knowledge of conventions and best practiceshelp wantedmodule:test-suiteeverything related to our testseverything related to our tests
Description
In scikit-learn, some estimators support class_weight and sample_weight.
It might be worth testing the correct interaction of those two types of weights, especially asserting that:
- setting a class weights to zero is equivalent to excluding the samples associated to this class from the calibration even when using non uniform sample weights.
- setting some samples weights to zero is equivalent to excluding those samples from the calibration even when if they are associated to using non uniform class weights.
Relevant interfaces:
- the main subclasses of
sklearn.tree.BaseDecisionTreefor classification, i.e.:-
sklearn.tree.DecisionTreeClassifier -
sklearn.tree.ExtraTreeClassifier
-
- the main subclasses of
sklearn.ensemble.BaseForestfor classification and embedding, i.e.:-
sklearn.ensemble.RandomTreesEmbedding -
sklearn.ensemble.RandomForestClassifier -
sklearn.ensemble.ExtraTreesClassifier
-
-
sklearn.linear_model.LogisticRegression -
sklearn.linear_model.LogisticRegressionCV -
sklearn.CalibratedClassifierCVafter the merge of [MRG] Add class_weight parameter to CalibratedClassifierCV #17541
Metadata
Metadata
Assignees
Labels
Meta-issueGeneral issue associated to an identified list of tasksGeneral issue associated to an identified list of tasksModerateAnything that requires some knowledge of conventions and best practicesAnything that requires some knowledge of conventions and best practiceshelp wantedmodule:test-suiteeverything related to our testseverything related to our tests