Return expected number of values in compute_prebins for ContinuousOptimalBinning#358
Conversation
|
Hi @guillermo-navas-palencia, I noticed the pytest workflow failed on test_binning_piecewise.py. It seems to come from the When I use
Unfortunately, I'm not sure about the root cause and version difference in |
|
Hi @YC-1412. I think setting a tolerance of 1e-4 is enough. I have had similar problems with previous cvxpy updates/changes. |
|
Hi @guillermo-navas-palencia, thanks for the confirmation. I took the liberty to update the tolerance in this PR. If it's not appropriate, I can revert it. Thanks! |
|
The tolerance change for 1 test was missing. I think after this change, all tests will pass :) |
|
Updated! Thank you! |
da450a1
into
guillermo-navas-palencia:develop


Fixes #357.
Please see the context in #357. This PR make
_compute_prebinsin ContinuousOptimalBinning always return 8 values. Missing values are filled with empty numpy array.I used the test code in #357 to test the fix.
Before

After
