lobstr-code icon indicating copy to clipboard operation
lobstr-code copied to clipboard

Fixed test for logistic regression, slope 1.

Open gbrsales opened this issue 7 years ago • 0 comments

Checks fail with the following log:

1) test: LogisticRegressionTest::test_logistic_regression (F) line: 103 tests/logistic_regression_test.cpp
assertion failed
- Expression: abs(coeffs.at(1)-0.49)<0.01
- Example 2: Slope1 term doesn't match

According to the documentation the expected value for slope 1 is -0.49 and the test should thus have the opposite sign.

gbrsales avatar Jul 12 '17 17:07 gbrsales