eqdisco.knowledge.check_constraints#

eqdisco.knowledge.check_constraints(equation, constraints, X=None, method='interval', splits=64)[source]#

Share of the domain where each constraint is violated.

method="interval" uses interval arithmetic on the symbolic derivative over splits boxes (falls back to sampling when the derivative cannot be expressed); "sampling" uses finite differences at random points. The default domain is the range of X.

Examples using eqdisco.knowledge.check_constraints#

Shape constraints for safe extrapolation

Shape constraints for safe extrapolation