Skip to main content
Glama

sampler_random_split

Split lists into partitions for machine learning tasks, typically creating train/test sets with customizable ratios and reproducible random sampling.

Instructions

[sampler] Split list into partitions. ratios defaults to [0.8, 0.2] (train/test). Returns {splits, sizes}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
ratiosNo
seedNo
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server