Skip to content

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)

Calls to LocalBoxCoxScaler with method="guerrero" that omit season_length, pass season_length=None, or pass a non-positive integer literal.

Pass the series seasonal period as a positive season_length, or switch to method="loglik" when every value is strictly positive.

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.