AGENT SKILL

train-test-split

How to split data so the score is honest.

License 许可
MIT
最近更新
2026-10-25
Stars
★ 0
Forks
0

01 前言 Front Matter

name
train-test-split
metadata
{ "beyondml": { "kind": "knowledge" } }
description
How to split data so the score is honest.

03 SKILL.md 正文

  • Split before any fitting; fit imputers, scalers and encoders on the training part only (pipelines do this).
  • Stratify classification splits.
  • Time-ordered data: split by time, never at random.
  • Grouped data (several rows per customer): keep each group on one side.
  • Use the same random_state everywhere so results are reproducible.

04 同仓库更多 Skills