cavalab / brush

An interpretable machine learning library
http://cavalab.org/brush/
GNU General Public License v3.0
2 stars 0 forks source link

Add tests for optimization #25

Closed gAldeia closed 1 year ago

gAldeia commented 1 year ago

This pull request implements several tests for checking whether the optimization is returning valid coefficients, for both the C++ and Python versions. It aims to resolve issue #14 .

All tests start with an expression with the correct structure, but not fitted yet.

I tried to cover basic test cases where it should work properly:

For each test case, I fit the expression and perform 3 checks:

lacava commented 1 year ago

looks great!