coreforecast/local-robust-invalid-scale
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| CoreForecast | warning | none, edit by hand | All versions |
coreforecast.scalers.LocalRobustScaler supports only scale="iqr" and scale="mad". Passing any other string silently selects "mad" without raising an error.
scaler = LocalRobustScaler(scale="std")scaler = LocalRobustScaler(scale="iqr")What the rule reports
Section titled “What the rule reports”Calls to coreforecast.scalers.LocalRobustScaler whose scale argument is a string literal other than "iqr" or "mad".
How to fix it
Section titled “How to fix it”Pass scale="iqr" for interquartile-range scaling or scale="mad" for median absolute deviation scaling.
Diagnostic message
Section titled “Diagnostic message”LocalRobustScaler accepts only "iqr" or "mad" for scale. Any other string silently falls back to "mad". Pass scale="iqr" or scale="mad".See all rules in the CoreForecast pack.