8000 TST More tolerance in float equality for 0 bandwidth (#13130) · scikit-learn/scikit-learn@24b6934 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24b6934

Browse files
jnothmanqinhanmin2014
authored andcommitted
TST More tolerance in float equality for 0 bandwidth (#13130)
1 parent b8d1226 commit 24b6934

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
@@ -36,7 +36,7 @@ def test_estimate_bandwidth_1sample():
3636
# Test estimate_bandwidth when n_samples=1 and quantile<1, so that
3737
# n_neighbors is set to 1.
3838
bandwidth = estimate_bandwidth(X, n_samples=1, quantile=0.3)
39-
assert_equal(bandwidth, 0.)
39+
assert_array_almost_equal(bandwidth, 0., decimal=5)
4040

4141

4242
def test_mean_shift():

0 commit comments

Comments
 (0)
0