cas-bigdatalab/piflow/data-splitter
Claude Code and agent skill by cas-bigdatalab/piflow
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
'JSONL比例切分工具。读取JSONL数据集,按给定比例拆成多个子集,支持随机切分和按字段分层切分。
Install
npx vskill@latest install cas-bigdatalab/piflow/data-splitterSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/data-splitter.
Data Splitter 数据分割 Skill
功能概述
本skill用于将JSONL数据集按比例拆分为多个子集,支持:
- 随机切分:打乱后按比例拆分
- 分层切分:按指定字段保持类别分布一致
触发条件
当用户请求以下任务时,应使用此skill:
- 按比例拆分JSONL
- 训练集/验证集/测试集拆分
- 数据集切分
- 分层切分
- JSONL样本拆分
核心参数说明
必需参数
| 参数 | 说明 | |
|---|---|---|
--input | 输入JSONL文件路径 | |
--outputs | 输出文件路径,逗号分隔 | |
--ratios | 分割比例,逗号分隔 |
可选参数
| 参数 | 说明 | 默认值 | |
|---|---|---|---|
--stratify_field | 分层字段 | 空 | |
--seed | 随机种子 | 42 | |
--log_file | 日志文件路径 | 空 |
输入文件格式
使用方法
随机切分
分层切分
输出示例
环境要求
注意事项
--outputs的数量必须与--ratios一致。--ratios的总和建议为 1.0。- 分层切分适合类别不平衡数据,但小样本类别仍可能受整数取整影响。
- 输入必须是 JSONL,每行一个 JSON 对象。
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingworkspace/skills/data_splitter/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/cas-bigdatalab/piflow/data-splitter)