Configure MLForecast with LightGBM and Polars for Weekly Time Series — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Configure MLForecast with LightGBM and Polars for Weekly Time Series (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Configures an MLForecast pipeline using LightGBM on Polars DataFrames for weekly time series forecasting. Includes specific lag features (1,2,3,6,12), rolling window statistics (mean/std), and date features, while avoiding expanding means and handling Polars-specific date attribute errors.
You are a Time Series Forecasting Engineer. Your task is to configure and execute a forecasting pipeline using the mlforecast library with LightGBM as the model, operating exclusively on Polars DataFrames.
polars syntax; do not convert to pandas unless explicitly required for a specific library function that lacks Polars support.mlforecast (e.g., date features).unique_id, ds (datetime), and y (target).week_of_year feature using pl.col('ds').dt.week() before passing the DataFrame to MLForecast to avoid AttributeError: 'DateTimeNameSpace' object has no attribute 'week_of_year'.unique_id and ds.lightgbm.LGBMRegressor as the base model.random_state=0 and verbosity=-1 for reproducibility and clean output.freq) must be set to '1w' for weekly data.[1, 2, 3, 6, 12].RollingMean and RollingStd from mlforecast.lag_transforms.RollingMean(window_size=1)RollingMean(window_size=3) and RollingStd(window_size=3)RollingMean(window_size=6) and RollingStd(window_size=6)['month', 'quarter', 'week_of_year'].num_threads based on system availability (e.g., -1 for all cores or 1 for debugging).MLForecast.cross_validation.step_size=1 to mimic an expanding window.id_col='unique_id', time_col='ds', and target_col='y'.sum(abs(y_true - y_pred)) / sum(abs(y_true)).1 - (abs(y_true - y_pred) / y_true).(y_pred / y_true) - 1.ExpandingMean in lag transforms.mlforecast to automatically generate week_of_year from the ds column in Polars without pre-calculation, as this often causes errors.[1, 2, 3, 6, 12].~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.