Skip to content

Commit ae6f580

Browse files
committed
TST More tolerance in float equality for 0 bandwidth (scikit-learn#13130)
1 parent e0ea2b5 commit ae6f580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/cluster/tests/test_mean_shift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_estimate_bandwidth_1sample():
3737
# Test estimate_bandwidth when n_samples=1 and quantile<1, so that
3838
# n_neighbors is set to 1.
3939
bandwidth = estimate_bandwidth(X, n_samples=1, quantile=0.3)
40-
assert_equal(bandwidth, 0.)
40+
assert_array_almost_equal(bandwidth, 0., decimal=5)
4141

4242

4343
def test_mean_shift():

0 commit comments

Comments
 (0)