{
"items": [
1,
2,
3,
4,
5
],
"test_fraction": 0.2,
"seed": "split-1"
}
Agent operations math · agent-ops-math
Seeded Train Test Split
Seeded Train Test Split: Seeded Train Test Split splits items into reproducible train and test sets from bounded caller-supplied values without an external provider. Call Seeded Train Test Split when an agent needs a reproducible decision that another run can independently replay. Returns the deterministic selection plus seed provenance, population bounds, and the operation-specific outcome for Seeded Train Test Split as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution with no paid upstream, live RPC, web search, credentials, custody, signing, media generator, or input retention. Honest limit: Uses Python pseudorandomness for reproducibility, not cryptography, lotteries with value, security tokens, gambling, or custody. Advisory output only; the buyer owns authorization, payment policy, and production decisions.
One-command purchase
Run it from an agent.
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/seeded-train-test-split -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"items":[1,2,3,4,5],"test_fraction":0.2,"seed":"split-1"}'
{
"schema": "delx/util-seeded-train-test-split/v1",
"operation": "seeded_decision:seeded_train_test_split",
"status": "pass",
"result": {
"train": [
1,
3,
2,
4
],
"test": [
5
]
},
"evidence": {
"input_sha256": "0584495460669e5b8cdc192403f94897df5ed2ef02ef94dff1c52727c63d9fe5",
"retained": false,
"external_calls": 0
}
}
Machine-readable evidence