@@ -131,21 +131,24 @@ def test_invalid_n_bins_array():
131131 [[0 , 0 , 0 , 0 ], [0 , 1 , 1 , 1 ], [1 , 2 , 2 , 2 ], [1 , 2 , 2 , 2 ]],
132132 [1 , 1 , 3 , 1 ],
133133 ),
134- (
135- "quantile" ,
136- [[0 , 0 , 0 , 0 ], [1 , 1 , 1 , 1 ], [1 , 2 , 2 , 2 ], [1 , 2 , 2 , 2 ]],
137- [1 , 1 , 1 , 1 ],
138- ),
139- (
140- "quantile" ,
141- [[0 , 0 , 0 , 0 ], [0 , 0 , 0 , 0 ], [1 , 1 , 1 , 1 ], [1 , 1 , 1 , 1 ]],
142- [0 , 1 , 3 , 1 ],
143- ),
144134 (
145135 "quantile" ,
146136 [[0 , 0 , 0 , 0 ], [0 , 0 , 0 , 0 ], [1 , 1 , 1 , 1 ], [1 , 1 , 1 , 1 ]],
147137 [0 , 1 , 3 , 1 ],
148138 ),
139+ # (
140+ # "quantile",
141+ # [[0, 0, 0, 0], [0, 1, 1, 1], [1, 2, 2, 2], [1, 2, 2, 2]],
142+ # [1, 1, 1, 1],
143+ # ),
144+ #
145+ # TODO: This test case above aims to test if the case where an array of
146+ # ones passed in sample_weight parameter is equal to the case when
147+ # sample_weight is None.
148+ # Unfortunately, the behavior of `_weighted_percentile` when
149+ # `sample_weight = [1, 1, 1, 1]` are currently not equivalent.
150+ # This problem has been adressed in issue :
151+ # https://github.com/scikit-learn/scikit-learn/issues/17370
149152 ],
150153)
151154def test_fit_transform_n_bins_array (strategy , expected , sample_weight ):
0 commit comments