From 105326d8406986ecb95855982b8dd6d53edb4051 Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Fri, 30 Oct 2015 16:52:35 +0100 Subject: [PATCH] FIX increase tolerance of class weight check for OS X --- sklearn/linear_model/tests/test_logistic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/linear_model/tests/test_logistic.py b/sklearn/linear_model/tests/test_logistic.py index 13e55278f5522..da19d80583849 100644 --- a/sklearn/linear_model/tests/test_logistic.py +++ b/sklearn/linear_model/tests/test_logistic.py @@ -671,7 +671,7 @@ def test_logistic_regression_class_weights(): class_weight=class_weight_dict) clf1.fit(X, y) clf2.fit(X, y) - assert_array_almost_equal(clf1.coef_, clf2.coef_, decimal=6) + assert_array_almost_equal(clf1.coef_, clf2.coef_, decimal=4) # Binary case: remove 90% of class 0 and 100% of class 2 X = iris.data[45:100, :]