Skip to content

effector/mask-and-rule-conflict

Pack Severity Fix Versions
effector error none, edit by hand All versions

Effector query methods (eval, eval_heter, heter_score, importance, importances, plot, payload) accept either a boolean mask= or a rule= string/Rule, never both. Passing both raises ValueError.

y = ale.eval("wind", xs, mask=tight_mask, rule="interconnector < 200")
y = ale.eval("wind", xs, rule="interconnector < 200")

Calls to effector query methods that supply non-None values for both mask= and rule=.

Pass either mask= or rule=, not both.

effector queries raise ValueError('pass either `mask` or `rule`, not both') when both mask= and rule= are supplied. Pass only one of mask= or rule=.

See all rules in the effector pack.