mlforecast/target-robust-invalid-scale
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| MLForecast | warning | none, edit by hand | All versions |
mlforecast.target_transforms.LocalRobustScaler supports only scale="iqr" and scale="mad". Any other string silently delegates to "mad" in CoreForecast without raising an error.
transform = LocalRobustScaler(scale="std")transform = LocalRobustScaler(scale="iqr")What the rule reports
Section titled “What the rule reports”Calls to mlforecast.target_transforms.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”mlforecast 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 MLForecast pack.