"vscode:/vscode.git/clone" did not exist on "e8b161017bb919e3f2e28b3c1dd2b68cc72455fc"
Commit 97ff8cb2 authored by Juha Reunanen's avatar Juha Reunanen Committed by Davis E. King
Browse files

Noticed compiler warning C4800: 'double': forcing value to bool 'true' or...

Noticed compiler warning C4800: 'double': forcing value to bool 'true' or 'false' (performance warning) (#538)

- suggesting to change the test to what perhaps was the original intention
parent 523e020e
...@@ -109,7 +109,7 @@ namespace ...@@ -109,7 +109,7 @@ namespace
results = basic_elastic_net(X, Y, ridge_lambda, lasso_budget*s, eps); results = basic_elastic_net(X, Y, ridge_lambda, lasso_budget*s, eps);
results2 = solver(ridge_lambda, lasso_budget*s); results2 = solver(ridge_lambda, lasso_budget*s);
dlog << LINFO << "error: "<< max(abs(results - results2)); dlog << LINFO << "error: "<< max(abs(results - results2));
DLIB_TEST(max(abs(results - results2) < 1e-3)); DLIB_TEST(max(abs(results - results2)) < 1e-3);
} }
} }
} a; } a;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment