{"uid":"cap_IY7wza5gvClebgybIVFsJ","slug":"delx-commerce-seeded-k-fold-split-2cbdfc19","name":"Delx Commerce — Seeded K-Fold 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-kfold-split?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Kfold Split; used only for this bounded calculation and processed in memory without retention."},"folds":{"type":"integer","description":"Folds supplied to Seeded Kfold Split; used only for this bounded calculation and processed in memory without retention."},"item_count":{"type":"integer","description":"Item Count supplied to Seeded Kfold Split; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"folds":[[0,6],[3,4],[7,2],[1,8],[9,5]]},"schema":"delx/util-seeded-kfold-split/v1","status":"pass","evidence":{"retained":false,"input_sha256":"1c82d188bfda6a3b8a6c4d0f5c621ee9924271306631661b47dfd5050597818a","external_calls":0},"operation":"seeded_decision:seeded_kfold_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_Zxgz1GX2VZMXVLjcX60qP","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 dataset of N items into K folds reproducibly using a provided seed, returning fold-to-index assignments.","exampleAgentPrompt":"Split 100 items into 5 folds using seed 'experiment-42' so I get the same fold assignments every time I run it.","exampleUseCases":[{"title":"Reproducible ML cross-validation setup","prompt":"I'm running a 10-fold cross-validation experiment on 500 samples and need the fold assignments to be exactly the same each run — can you split 500 items into 10 folds using seed 'cv-run-001'?"},{"title":"Team-shared train/test split","prompt":"Split 200 items into 4 folds using seed 'shared-split-v2' so my whole team can reference the same partition without sharing a file."},{"title":"Hyperparameter tuning fold generation","prompt":"For my hyperparameter search I need 3 folds across 80 items, always reproducible — use the seed 'hparam-grid-run3' and give me the index assignments for each fold."}],"resultDescription":"Returns a JSON object with fold assignments as a list of lists, each inner list containing the item indices for that fold. Also includes a schema identifier, operation name, pass/fail status, and a verifiable evidence block with SHA-256 hash of inputs, confirmation that no data was retained, and number of external calls made (zero).","failureModes":["Invalid or missing 'folds' integer — API may return an error or unexpected output","Item count of zero or negative — computation undefined, likely returns an error","Mismatched folds vs item count causing uneven partition — API handles this but distribution may be unequal","Payment failure (insufficient USDC balance) — 402 response before computation runs","Seed string exceeding 8192 character limit — request rejected"],"whenToPreferThis":"Prefer this endpoint when you need a lightweight, pay-per-call, no-signup solution for reproducible k-fold splits with verifiable, auditable evidence of computation (SHA-256 input hash, no data retention). Ideal for ML pipelines where determinism and auditability matter and you don't want to run your own shuffle logic. Not suitable for large-scale batch splits or when you need stratified splits based on label distributions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:59.431Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-k-fold-split-2cbdfc19"}