portfolio-data-split

Split portfolio data into training, validation, and walk-forward subsets.

33|2|Updated May 13, 2026
One-click install
npx skills add https://github.com/adennng/stock_strategy_lab --skill portfolio-data-split
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: portfolio-data-split
Source: https://github.com/adennng/stock_strategy_lab/tree/main/src/strategy_lab/skills/portfolio_agent/portfolio-data-split
Command: npx skills add https://github.com/adennng/stock_strategy_lab --skill portfolio-data-split

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for data splitting in portfolio analysis, streamlining the process for backtesting and optimization.

Core Features & Use Cases

  • Data Splitting: Automatically split portfolio data into train, validation, and walk-forward sets for backtesting and optimization.
  • Customization: Offers flexibility in specifying data paths and output directory.
  • Use Case: A financial analyst can use this Skill to create separate datasets for each phase of the portfolio optimization process, facilitating a comprehensive evaluation.

Quick Start

Run the portfolio split-data skill with the path to the portfolio run state file and specify the desired split mode.

Frequently Asked Questions about portfolio-data-split

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split portfolio data for backtesting and optimization?

Splitting portfolio data for backtesting involves dividing datasets into training, validation, and walk-forward subsets. This requires input files like panel_ohlcv.parquet and returns_wide.parquet to generate the separated datasets needed for strategy evaluation.

What is walk-forward data splitting in portfolio analysis?

Walk-forward data splitting in portfolio analysis is a technique that divides data into sequential subsets for testing trading strategies. It creates separate training, validation, and walk-forward sets to facilitate a comprehensive evaluation of strategy optimization over time.

What file formats do I need for portfolio data splitting?

You need parquet file formats for portfolio data splitting, specifically panel_ohlcv.parquet and returns_wide.parquet. These files provide the panel data and returns matrices required to generate the split training, validation, and walk-forward output datasets.

Can I customize output paths when splitting portfolio datasets?

Yes, you can customize output paths when splitting portfolio datasets. The data splitting process supports specifying custom data paths and output directories, allowing you to direct the generated training, validation, and walk-forward subsets to your preferred locations.

What split modes are available for portfolio strategy backtesting?

Available split modes for portfolio strategy backtesting include full-only and train-validation-walk-forward. These modes allow you to control how the portfolio data is divided, accommodating different phases of the strategy optimization process.

Why divide portfolio data into training and validation sets?

Dividing portfolio data into training and validation sets prevents overfitting during strategy optimization. By separating the data, you can train your model on one subset and validate its performance on another before final walk-forward testing.