interpret/ebm-invalid-interactions
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| interpret | error | none, edit by hand | All versions |
ExplainableBoostingClassifier and ExplainableBoostingRegressor reject negative interactions, floats >= 1.0 (which cannot be a percentage and must be an int), and strings that do not end in "x" (such as "auto" or "5").
ebm = ExplainableBoostingClassifier(interactions=2.0)ebm = ExplainableBoostingClassifier(interactions=2)What the rule reports
Section titled “What the rule reports”Calls to ExplainableBoostingClassifier or ExplainableBoostingRegressor passing a negative number, a float >= 1.0, or a non-<number>x string to interactions=.
How to fix it
Section titled “How to fix it”Pass a non-negative integer count (such as 0 or 10), a float fraction strictly below 1.0, a "<number>x" multiplier string (such as "3x"), or an explicit list of feature pairs.
Diagnostic message
Section titled “Diagnostic message”Passing interactions=$VAL to an ExplainableBoosting estimator raises ValueError. Use a non-negative int count (such as 0 or 10), a float fraction in (0, 1.0), a multiplier string ending in "x" (such as "3x"), or a sequence of feature pairs.See all rules in the interpret pack.