interpret/ebm-invalid-monotonize-args
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| interpret | error | none, edit by hand | All versions |
EBM.monotonize(term, increasing="auto", passthrough=0.0) accepts only "auto", True, False, or None for increasing, and requires passthrough in [0.0, 1.0]. Passing "ascending", "increasing", -1, or passthrough > 1.0 raises ValueError.
ebm.monotonize(0, increasing="ascending", passthrough=1.5)ebm.monotonize(0, increasing=True, passthrough=0.0)What the rule reports
Section titled “What the rule reports”Calls to .monotonize(...) passing an invalid literal for increasing or a passthrough literal outside [0.0, 1.0].
How to fix it
Section titled “How to fix it”Set increasing=True, increasing=False, or increasing="auto", and keep passthrough between 0.0 and 1.0.
Diagnostic message
Section titled “Diagnostic message”Invalid EBM monotonize() increasing=$VAL raises ValueError. Pass increasing="auto", True, False, or None.See all rules in the interpret pack.