• VALIDATION
  • INDEXING
  • DATASETS
  • HUMAN

How to create time-series data splits with your AI

Connect the K-Fold Split Engine to your AI client to handle temporal partitioning. It keeps your data in order so your models don't cheat by looking into the future.

Ask AI about this page

Short answer

How do I split time-series data without shuffling?

Tell your AI to use the K-Fold Split Engine to partition your dataset using non-shuffled indices. This preserves the chronological sequence required for valid temporal validation. You'll get specific index sets that respect the timeline of your data.

The results

What you get from the split

The AI handles the math and the indexing, leaving you with clean partitions.

VALIDATION

Chronological test sets

The AI uses calculate_kfold to generate indices that never mix past and future data. This ensures your backtests are realistic.

INDEXING

Non-shuffled partitions

The engine produces specific index ranges that follow your original data order. You get a clean way to slice your data without losing the time component.

DATASETS

Ready-to-use split groups

Your AI organizes the resulting indices into distinct folds. You can immediately apply these to your training and testing workflows.

HUMAN

Manual index review

The AI provides the index lists, but you decide if the split points align with your specific business logic or seasonal events.

The workflow

What your AI does when the data arrives.

The AI takes your raw temporal dataset and applies mathematical partitioning logic.

  1. Analyze temporal order

    Your AI looks at your dataset to identify the sequence of observations. It ensures the time component is respected before any math happens.

    calculate_kfold
  2. Generate non-shuffled indices

    The AI calculates the specific index boundaries for each fold. It avoids shuffling to prevent data leakage from the future into the past.

    calculate_kfold
  3. Organize fold groups

    The AI groups these indices into distinct training and validation sets. This structure makes it easy to loop through your testing process.

    calculate_kfold
  4. Deliver index sets

    The AI presents the final index arrays to you in your chat interface. You can then use these to slice your actual dataframes.

    calculate_kfold

Try it

Copy these to start.

Use these prompts to kick off the splitting process.

Starting points

Swap out the bracketed text for your actual file names or dataframe variables.

Native V8 Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_s2GV5rIVsuaI8v3RQcUudqBkroj2wfBRhHbY1JIg/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Native V8 capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "k-fold-split-engine-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_s2GV5rIVsuaI8v3RQcUudqBkroj2wfBRhHbY1JIg/mcp"
    }
  }
}
Copy into chat04
  • Use the K-Fold Split Engine to create 5 temporal folds for my 'sales_data.csv' file.

  • I need to split my 'sensor_readings' dataframe into training and testing sets using non-shuffled indices.

  • Apply a time-series split to the 'stock_prices' dataset in my current workspace.

  • Generate the indices for a 3-fold split on my 'weather_logs' dataset without shuffling the rows.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect K-Fold Split Engine once, then ask.

Just add the connector to your client. Your credentials stay encrypted, and you can start asking for splits immediately.

Connect K-Fold Split Engine to your AI

FAQ

How the splitting works

  • 01

    Does the AI shuffle my data?

    No. This connector is specifically designed to use non-shuffled indices to preserve the chronological order of your time-series.

  • 02

    Can the AI modify my original CSV file?

    No. The AI only calculates the indices. You are responsible for applying those indices to your files to create the actual splits.

  • 03

    How many folds can I create?

    You can specify any number of folds you need in your prompt, and the AI will calculate the corresponding index ranges.

  • 04

    Will this prevent data leakage?

    Yes, by avoiding shuffling, the AI ensures that your training data only contains observations that occurred before your validation data.

  • 05

    Can the AI perform the actual data slicing?

    No. The tool provides the mathematical index sets. You must use those indices within your own environment to slice your dataframes.

  • More questions about K-Fold Split Engine? The Connector page answers them. See everything the K-Fold Split Engine Connector can do

Connect Native V8 to Claude, Cursor, ChatGPT & more