MNT Fix divide by zero error thrown by _random_choice_csc during a test run
@@ -131,7 +131,7 @@ def test_random_choice_csc(n_samples=10000, random_state=24):
# Edge case probabilities 1.0 and 0.0
classes = [np.array([0, 1]), np.array([0, 1, 2])]
- class_probabilities = [np.array([1.0, 0.0]), np.array([0.0, 1.0, 0.0])]
+ class_probabilities = [np.array([0.0, 1.0]), np.array([0.0, 1.0, 0.0])]
got = _random_choice_csc(n_samples, classes, class_probabilities,
random_state)
