Skip to content

MLForecast

The MLForecast pack checks interval calibration, sample-weight routing, and local target scalers on files that import MLForecast.

Rules Safe fix Unsafe fix Manual fix
4 0 0 4
Rule Severity Fix What it finds
intervals-without-calibration warning none MLForecast.predict(level=...) needs a fit that calibrates prediction intervals.
Rule Severity Fix What it finds
global-target-without-inverse error none GlobalSklearnTransformer calls inverse_transform on predictions at forecast time.
target-robust-invalid-scale warning none mlforecast.target_transforms.LocalRobustScaler supports only scale="iqr" and scale="mad".
weight-col-on-pipeline error none MLForecast.fit(..., weight_col=...) and MLForecast.cross_validation(..., weight_col=...) pass sample_weight directly to every estimator's fit method.