{"uid":"cap_QCiIAl4IKBdvX7w0JpuuU","slug":"delx-commerce-seeded-train-test-split-a864d4b5","name":"Delx Commerce — Seeded Train/Test Split","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/seeded-train-test-split?utm_source=zero.xyz","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_GPrRjwBeaMG4Ec_sWflje","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":"Deterministically splits a list of integer items into train and test sets using a reproducible seed and a specified test fraction.","exampleAgentPrompt":"Split the integer list [1, 2, 3, 4, 5] into train and test sets using seed 'my-experiment-42' and a test fraction of 0.2 — I need the result to be reproducible every time.","exampleUseCases":[{"title":"Reproducible ML dataset partitioning","prompt":"I have the item indices [1, 2, 3, 4, 5, 6, 7, 8] and I want to split them into train and test sets with 25% going to test. Use seed 'run-2024-a' so I get the same split every time I run this experiment."},{"title":"Verifiable agent pipeline data split","prompt":"Partition this list of record IDs [10, 20, 30, 40, 50, 60] into training and test groups using seed 'pipeline-seed-99' and a test fraction of 0.3 — I need cryptographic evidence that no data was retained."},{"title":"Consistent cross-validation fold seeding","prompt":"Split [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] into train and test with seed 'fold-1' and test fraction 0.2, then do the same with seed 'fold-2' — I'm building reproducible cross-validation folds for my model."}],"resultDescription":"Returns a JSON object containing 'train' and 'test' arrays of integers, the operation name, status ('pass'), and an evidence block including a SHA-256 hash of the input, a flag confirming no data was retained, and the count of external calls made — providing verifiable, auditable proof of the computation.","failureModes":["Invalid or missing test_fraction (e.g. outside 0-1 range) may cause a validation error","Items array exceeding 256 elements returns a schema validation error","Seed string exceeding 8192 characters is rejected","Payment failure (insufficient USDC balance) returns HTTP 402","Malformed request body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, reproducible, and verifiably auditable train/test split for a small integer dataset (up to 256 items) — especially in automated agent pipelines where cryptographic evidence of in-memory-only processing and no external calls matters. Prefer it over local random splits when reproducibility across machines or auditability is required and pay-per-call microtransaction economics fit your workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:51:39.658Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-train-test-split-a864d4b5"}