coreforecast/boxcox-guerrero-without-season-length
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| CoreForecast | error | none, edit by hand | All versions |
coreforecast.scalers.LocalBoxCoxScaler(method="guerrero") raises ValueError unless season_length is set to a positive integer.
scaler = LocalBoxCoxScaler(method="guerrero")scaler = LocalBoxCoxScaler(method="guerrero", season_length=24)What the rule reports
Section titled “What the rule reports”Calls to LocalBoxCoxScaler with method="guerrero" that omit season_length, pass season_length=None, or pass a non-positive integer literal.
How to fix it
Section titled “How to fix it”Pass the series seasonal period as a positive season_length, or switch to method="loglik" when every value is strictly positive.
Diagnostic message
Section titled “Diagnostic message”LocalBoxCoxScaler with method="guerrero" requires a positive season_length and raises ValueError without it. Pass season_length=<period> or use method="loglik" on strictly positive data.See all rules in the CoreForecast pack.