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

Skip to content

Commit e260583

Browse files
jnothmanXing
authored and
Xing
committed
TST More tolerance in float equality for 0 bandwidth (scikit-learn#13130)
1 parent 518b183 commit e260583

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