Skip to content
Snippets Groups Projects
Commit 2999a2f5 authored by Yaroslav Halchenko's avatar Yaroslav Halchenko
Browse files

* debian/tests/deb_tests_lower_precision - to lower precision of...

* debian/tests/deb_tests_lower_precision - to lower precision of test_feature_importances to avoid FTBFS on some (BE) platforms
parent 4b21c088
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,11 @@ scikit-learn (0.17.0-3) unstable; urgency=medium
* debian/rules
- boost minimal Cython version for recythonization to 0.23.1.
Should enable back bakckports on older Debian/Ubuntus
* debian/tests/deb_tests_lower_precision
- to lower precision of test_feature_importances to avoid FTBFS on some
(BE) platforms
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 21 Dec 2015 20:38:42 -0500
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 21 Dec 2015 21:02:16 -0500
scikit-learn (0.17.0-2) unstable; urgency=medium
......
--- 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=5)
# For the Lasso and related models, the threshold defaults to 1e-5
transformer = SelectFromModel(estimator=Lasso(alpha=0.1))
......@@ -9,3 +9,4 @@ deb_git_revision_cmd
deb_no_plot_gallery
deb_optional_linkcode
deb_nopaypal
deb_tests_lower_precision
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment