{"uid":"cap_-dbRmfLtnmwGvie8E0kb7","slug":"delx-seeded-train-test-split-e88ebbcd","name":"Delx Seeded Train-Test Split","description":"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-p…","url":"https://api.delx.ai/api/v1/x402/seeded-train-test-split","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Train Test Split; used only for this bounded calculation and processed in memory without retention."},"items":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Items supplied to Seeded Train Test Split; used only for this bounded calculation and processed in memory without retention."},"test_fraction":{"type":"number","description":"Test Fraction supplied to Seeded Train Test Split; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"test":[5],"train":[1,3,2,4]},"schema":"delx/util-seeded-train-test-split/v1","status":"pass","evidence":{"retained":false,"input_sha256":"0584495460669e5b8cdc192403f94897df5ed2ef02ef94dff1c52727c63d9fe5","external_calls":0},"operation":"seeded_decision:seeded_train_test_split"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TA6iIYytHE3cFxfpiOuy_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a list of integer items into reproducible train and test sets using a deterministic seed and a specified test fraction.","exampleAgentPrompt":"Split the list [1, 2, 3, 4, 5] into train and test sets using seed 'abc123' and a test fraction of 0.2 — I need the same split every time I run this.","exampleUseCases":[{"title":"Reproducible ML dataset partitioning","prompt":"I have a list of sample IDs [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] and I need to split them into train and test sets with 20% for testing — use seed 'experiment-42' so I always get the same split."},{"title":"Cross-run experiment consistency","prompt":"For my experiment tracking, partition items [10, 20, 30, 40, 50, 60] into train and test with a 0.3 test fraction and seed 'run-seed-7' so my collaborator can reproduce the exact same split."},{"title":"Evaluation set isolation for batch scoring","prompt":"Take this list of record IDs [101, 102, 103, 104, 105, 106, 107, 108] and carve out 25% as a test set using seed 'holdout-v1' — I want the holdout to be stable across pipeline reruns."}],"resultDescription":"Returns a JSON object with two arrays: 'train' containing the training subset and 'test' containing the test subset of the original integer items, along with operation metadata, an evidence block confirming no data retention and no external calls, and a SHA-256 hash of the input for auditability.","failureModes":["Invalid seed type (non-string) returns validation error","test_fraction outside [0,1] range causes computation failure","items array exceeds 256-element limit returns 400 error","Malformed request body returns schema validation error","Empty items array may return empty train or test sets"],"whenToPreferThis":"Prefer this endpoint when you need a lightweight, stateless, reproducible train-test split for a small list of integers (up to 256 items) within an agent workflow — especially when auditability matters, since the response includes input hashes and confirms no external calls or data retention. It is ideal for pipelines that must produce identical splits across runs given the same seed and fraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:54:06.174Z","isFirstParty":false}