Skip to content

Commit

Permalink
Check sample weight equivalence on sparse data (#30137)
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Grisel <[email protected]>
  • Loading branch information
antoinebaker and ogrisel authored Nov 22, 2024
1 parent 3d701a7 commit c713ff4
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 66 deletions.
9 changes: 6 additions & 3 deletions doc/whats_new/upcoming_changes/sklearn.utils/29818.api.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
- :func:`check_estimators.check_sample_weights_invariance` replaced by
:func:`check_estimators.check_sample_weight_equivalence` which uses
integer (including zero) weights.
- `utils.estimator_checks.check_sample_weights_invariance`
replaced by
`utils.estimator_checks.check_sample_weight_equivalence_on_dense_data`
which uses integer (including zero) weights and
`utils.estimator_checks.check_sample_weight_equivalence_on_sparse_data`
which does the same on sparse data.
By :user:`Antoine Baker <antoinebaker>`
7 changes: 7 additions & 0 deletions doc/whats_new/upcoming_changes/sklearn.utils/30137.api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- `utils.estimator_checks.check_sample_weights_invariance`
replaced by
`utils.estimator_checks.check_sample_weight_equivalence_on_dense_data`
which uses integer (including zero) weights and
`utils.estimator_checks.check_sample_weight_equivalence_on_sparse_data`
which does the same on sparse data.
By :user:`Antoine Baker <antoinebaker>`
Loading

0 comments on commit c713ff4

Please sign in to comment.