Skip to content

Commit

Permalink
debian/tests/deb_tests_lower_precision - lowering further to 4 decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Dec 22, 2015
1 parent 2999a2f commit 3c546fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
scikit-learn (0.17.0-4) unstable; urgency=medium

* debian/tests/deb_tests_lower_precision
- lowering further to 4 decimals

-- Yaroslav Halchenko <[email protected]> Tue, 22 Dec 2015 08:51:29 -0500

scikit-learn (0.17.0-3) unstable; urgency=medium

* debian/control
Expand Down
2 changes: 1 addition & 1 deletion debian/patches/deb_tests_lower_precision
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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)
+ 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))

0 comments on commit 3c546fd

Please sign in to comment.