Inequality constraint raises RuntimeWarning
(invalid value encountered in log)
#1275
Labels
feature:constraints
Related to inputting rules or business logic
internal
The issue doesn't change the API or functionality
Milestone
Environment Details
Error Description
When I apply an
Inequality
constraint to the demo data, I see aRuntimeWarning
when fitting my data.This doesn't seem to affect the data quality so I'm ignoring it. But we should check to see if it's indicative of any unintended behavior.
Steps to reproduce
Context
The following line is causing the error in
constraints/tabular.py
:It seems like
np.log
throws this warning if any value is 0 or negative. But this is odd: All values should be1
or more because:diff_column
must be >=0 )The text was updated successfully, but these errors were encountered: