cilipep/ai-agent-with-tslab/walk-forward-optimization
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Walk-forward validation workflow for ML trading models with leak-proof data splitting, threshold/weight optimization, and ensemble creation
Install
npx vskill@latest install cilipep/ai-agent-with-tslab/walk-forward-optimizationSKILL.md
Walk-Forward Optimization Playbook
Reusable workflow for time-series ML model validation and optimization.
Core Principles
- No look-ahead bias — scaler fit on train only, transform on val/test
- Proper validation split — 85/15 train/val within each fold's training data
- Threshold optimization — find optimal decision threshold on validation
- Weight optimization — grid search over weight combinations for ensembles
- Result aggregation — concatenate equity curves across folds
Workflow Steps
Step 1: Data Preparation
Step 2: Walk-Forward Loop
Step 3: Threshold Optimization
Step 4: Weight Optimization (for ensembles)
Step 5: Test Set Evaluation
Common Pitfalls to Avoid
- Variable shadowing — don't reuse
totalas loop counter when it's dataset size - Scaler on all data — always fit scaler on train only
- Val == Train — never pass same dataset for train and validation
- Wrong start_idx — ensure backtest uses correct price alignment
- Fixed threshold — always optimize threshold on validation
Output Format
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.mimocode/skills/walk-forward-optimization/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cilipep/ai-agent-with-tslab/walk-forward-optimization)