Skip to content

Comments

Fixed test for logistic regression, slope 1.#86

Open
gbrsales wants to merge 1 commit intomgymrek:masterfrom
gbrsales:logistic
Open

Fixed test for logistic regression, slope 1.#86
gbrsales wants to merge 1 commit intomgymrek:masterfrom
gbrsales:logistic

Conversation

@gbrsales
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant