Skip to content
Prompt

skforecast — Copilot Instructions

by skforecast

AI Summary

<!-- AUTO-GENERATED FILE. DO NOT EDIT MANUALLY. --> <!-- Source: tools/ai/llms-base.txt + tools/ai/aicontextheader.md --> <!-- Regenerate with: python tools/ai/generateaicontext_files.py -->

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "skforecast — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/skforecast/skforecast

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Time series forecasting with machine learning models

Window Features (Rolling Statistics)

`python from skforecast.preprocessing import RollingFeatures

Create rolling features

rolling_features = RollingFeatures( stats=['mean', 'std', 'min', 'max'], window_sizes=7 # int applies to all stats, or list with same length as stats ) forecaster = ForecasterRecursive( estimator=LGBMRegressor(), lags=24, window_features=rolling_features ) `

Testing

`bash pytest skforecast/recursive/tests/ -vv # Run a specific module's tests pytest --cov=skforecast --cov-report=html # Coverage report pytest -n auto # Parallel execution (pytest-xdist) ` Markers: @pytest.mark.slow for long-running tests (skip with -m "not slow").

Code Style

• NumPy-style docstrings • Type hints for function signatures • PEP 8 compliant (max line length 88, enforced by ruff) • Single quotes for strings (ruff quote-style = "single") • Relative imports within package

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2d ago
Active
Adoption1K+ stars on GitHub
1.5k ★ · Popular
DocsMissing or thin
Undocumented

GitHub Signals

Stars1.5k
Forks187
Issues24
Updated2d ago
View on GitHub
BSD-3-Clause License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more