From 2044606482690287a3741b8249426807a17e5523 Mon Sep 17 00:00:00 2001 From: NeuroDebian Team Date: Tue, 25 Oct 2016 12:24:18 +0000 Subject: [PATCH] deb_tests_lower_precision Gbp-Pq: Name deb_tests_lower_precision --- sklearn/feature_selection/tests/test_from_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/feature_selection/tests/test_from_model.py b/sklearn/feature_selection/tests/test_from_model.py index 06dc3d7..55824d5 100644 --- a/sklearn/feature_selection/tests/test_from_model.py +++ b/sklearn/feature_selection/tests/test_from_model.py @@ -92,7 +92,7 @@ def test_feature_importances(): importances = transformer.estimator_.feature_importances_ transformer.fit(X, y, sample_weight=3 * sample_weight) importances_bis = transformer.estimator_.feature_importances_ - assert_almost_equal(importances, importances_bis) + assert_almost_equal(importances, importances_bis, decimal=4) # For the Lasso and related models, the threshold defaults to 1e-5 transformer = SelectFromModel(estimator=Lasso(alpha=0.1)) -- 2.30.2