File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,11 @@ scikit-learn (0.17.0-3) unstable; urgency=medium
6
6
* debian/rules
7
7
- boost minimal Cython version for recythonization to 0.23.1.
8
8
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
9
12
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
11
14
12
15
scikit-learn (0.17.0-2) unstable; urgency=medium
13
16
Original file line number Diff line number Diff line change
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))
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ deb_git_revision_cmd
9
9
deb_no_plot_gallery
10
10
deb_optional_linkcode
11
11
deb_nopaypal
12
+ deb_tests_lower_precision
You can’t perform that action at this time.
0 commit comments