Skip to content

Commit 2999a2f

Browse files
committed
* debian/tests/deb_tests_lower_precision - to lower precision of test_feature_importances to avoid FTBFS on some (BE) platforms
1 parent 4b21c08 commit 2999a2f

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

debian/changelog

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ scikit-learn (0.17.0-3) unstable; urgency=medium
66
* debian/rules
77
- boost minimal Cython version for recythonization to 0.23.1.
88
Should enable back bakckports on older Debian/Ubuntus
9+
* debian/tests/deb_tests_lower_precision
10+
- to lower precision of test_feature_importances to avoid FTBFS on some
11+
(BE) platforms
912

10-
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 21 Dec 2015 20:38:42 -0500
13+
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 21 Dec 2015 21:02:16 -0500
1114

1215
scikit-learn (0.17.0-2) unstable; urgency=medium
1316

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/sklearn/feature_selection/tests/test_from_model.py
2+
+++ b/sklearn/feature_selection/tests/test_from_model.py
3+
@@ -92,7 +92,7 @@ def test_feature_importances():
4+
importances = transformer.estimator_.feature_importances_
5+
transformer.fit(X, y, sample_weight=3 * sample_weight)
6+
importances_bis = transformer.estimator_.feature_importances_
7+
- assert_almost_equal(importances, importances_bis)
8+
+ assert_almost_equal(importances, importances_bis, decimal=5)
9+
10+
# For the Lasso and related models, the threshold defaults to 1e-5
11+
transformer = SelectFromModel(estimator=Lasso(alpha=0.1))

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ deb_git_revision_cmd
99
deb_no_plot_gallery
1010
deb_optional_linkcode
1111
deb_nopaypal
12+
deb_tests_lower_precision

0 commit comments

Comments
 (0)