effector/ale-non-fixed-binning
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| effector | error | none, edit by hand | All versions |
effector.ALE.fit() validates binning_method and raises ValueError unless it is "fixed" or an effector.axis_partitioning.Fixed instance. Adaptive binners ("dp", "agglomerative", "quantile") belong to effector.RHALE.
ale = effector.ALE(X_val, model.predict)ale.fit("all", binning_method="dp")rhale = effector.RHALE(X_val, model.predict)rhale.fit("all", binning_method="dp")What the rule reports
Section titled “What the rule reports”Calls to ALE.fit(..., binning_method=...) passing any non-"fixed" string literal or a non-Fixed axis partitioner (DynamicProgramming, Agglomerative, Quantile, Greedy).
How to fix it
Section titled “How to fix it”Use binning_method="fixed" (or axis_partitioning.Fixed(...)) with effector.ALE, or switch to effector.RHALE for variable-width bins.
Diagnostic message
Section titled “Diagnostic message”effector.ALE.fit() only supports binning_method='fixed' or axis_partitioning.Fixed() and raises ValueError for adaptive binners. Use binning_method='fixed' with ALE or switch to effector.RHALE for 'dp', 'agglomerative', or 'quantile' binning.See all rules in the effector pack.