diff --git a/src/mlpack/tests/cf_test.cpp b/src/mlpack/tests/cf_test.cpp index 74e0b70583..ac5270f30a 100644 --- a/src/mlpack/tests/cf_test.cpp +++ b/src/mlpack/tests/cf_test.cpp @@ -296,10 +296,10 @@ void CFPredict(bool cleanData = true) totalError += error; } - totalError = std::sqrt(totalError) / savedCols.n_cols; + const double rmse = std::sqrt(totalError / savedCols.n_cols); - // The mean squared error should be less than one. - BOOST_REQUIRE_LT(totalError, 0.6); + // The root mean square error should be less than ?. + BOOST_REQUIRE_LT(rmse, 4.3); } // Do the same thing as the previous test, but ensure that the ratings we