{"uid":"cap_nWyILvgZrYbpWpJ215Iq5","slug":"delx-seeded-k-fold-split-acccea46","name":"Delx Seeded K-Fold Split","description":"Seeded Kfold Split: Seeded Kfold Split assigns item indices to reproducible cross-validation folds from bounded caller-supplied values without an external provider. Call Seeded Kfold 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 Kfold Split as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, state…","url":"https://api.delx.ai/api/v1/x402/seeded-kfold-split","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_uPCPrYcU1cfeFDfqiKSbz","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":"Reproducibly splits a set of N items into K folds using a deterministic seed, returning fold-to-index assignments for cross-validation workflows.","exampleAgentPrompt":"Split 200 items into 5 folds using the seed 'experiment42' — I need the same fold assignments every time I run this.","exampleUseCases":[{"title":"Reproducible ML cross-validation splits","prompt":"I have 500 data points and need to split them into 10 folds for cross-validation. Use the seed 'cv-run-001' so I get the same partition every time I re-run the experiment."},{"title":"Consistent A/B test group assignment","prompt":"Partition 80 users into 4 equal groups for a multi-arm experiment. Use 'abtest-2024' as the seed so the group assignments are reproducible across team members."},{"title":"Seeded batch partitioning for parallel jobs","prompt":"I want to divide 300 tasks into 6 folds using seed 'batch-seed-99' so each worker gets a deterministic, non-overlapping slice to process."}],"resultDescription":"Returns a JSON object containing an array of folds, where each fold is a list of integer indices assigned to that fold. Also includes operation metadata such as the schema version, status, whether input was retained (always false), the SHA-256 hash of the input, and the number of external calls made (always 0).","failureModes":["Missing required fields (seed, folds, item_count) result in a validation error","Non-integer values for folds or item_count may cause a type error","Requesting more folds than items may produce empty or degenerate folds","Extremely large item_count values may cause timeout or rejection","Invalid JSON body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, reproducible k-fold partition of N items using a fixed seed — especially for machine learning cross-validation, reproducible experiments, or consistent parallel job distribution. It is stateless, fast, and leaves no retained data, making it suitable for privacy-sensitive pipelines. Prefer this over custom shuffle logic when you need auditability via input SHA-256 hashing and a guaranteed no-retention policy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:58.434Z","isFirstParty":false}