[mlpack-git] [mlpack] Tests fail on Mac (#417)

Ryan Curtin notifications at github.com
Sun Mar 8 17:19:48 EDT 2015


As an update, I looked into the issue.  It's not actually Mac-specific.  Instead, the issue is more of a bad tolerance in those three failing tests.  If I vary the random seed (which is, in these cases, set at compilation time), I sometimes get tests that pass and sometimes get tests that fail.  For now what I would do in your packaging situation is to apply a patch that comments out those tests (either the entire test in svd_batch_test.cpp and svd_incremental_test.cpp, or just the lines that call `BOOST_REQUIRE_*`).  I'm relatively sure the algorithms themselves will still work.  Many of the mlpack tests are aimed more at ensuring that a code update does not break the functionality of the method, instead of ensuring that mlpack's algorithms work on every possible platform (in general, this  is a lot harder to test and also failures of this type happen a lot less often).

I'm going to leave the ticket open until I fix the tests in master, but what I've written should be good enough to solve the Homebrew issue, I think.

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/417#issuecomment-77775016
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150308/4173b918/attachment.html>


More information about the mlpack-git mailing list