Skip to content

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)

Calls to .monotonize(...) passing an invalid literal for increasing or a passthrough literal outside [0.0, 1.0].

Set increasing=True, increasing=False, or increasing="auto", and keep passthrough between 0.0 and 1.0.

Invalid EBM monotonize() increasing=$VAL raises ValueError. Pass increasing="auto", True, False, or None.

See all rules in the interpret pack.