{"slug":"denk-halowerk-com-v1-dataset-split-379188","title":"Split a dataset into train/validation/test reproducibly with a seed, stratified ","host":"denk.halowerk.com","method":"POST","resource":"https://denk.halowerk.com/v1/dataset-split","category":"other","description":"Split a dataset into train/validation/test reproducibly with a seed, stratified by label and optionally grouped so related rows never cross splits. Assigns each row to train, validation or test using the given fractions and a seeded generator, so the same input and seed always give the same split. W","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":5,"answered_7d":5,"latency_ms_median":901,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"fractions":{"test":0.5,"train":0.5,"validation":0},"label_field":"label","rows":[{"label":"x","text":"a"},{"label":"x","text":"b"},{"label":"y","text":"c"},{"label":"y","text":"d"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"fractions":{"additionalProperties":false,"default":{"test":0.1,"train":0.8,"validation":0.1},"properties":{"test":{"maximum":1,"minimum":0,"type":"number"},"train":{"maximum":1,"minimum":0,"type":"number"},"validation":{"maximum":1,"minimum":0,"type":"number"}},"type":"object"},"group_field":{"maxLength":100,"type":"string"},"label_field":{"maxLength":100,"type":"string"},"rows":{"items":{"type":"object"},"maxItems":200000,"minItems":3,"type":"array"},"seed":{"default":"42","maxLength":100,"type":"string"}},"required":["rows"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"additionalProperties":true,"properties":{"type":{"const":"json"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":911,"error":null},{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":901,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":875,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":904,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":899,"error":null}],"description_full":"Split a dataset into train/validation/test reproducibly with a seed, stratified by label and optionally grouped so related rows never cross splits. Assigns each row to train, validation or test using the given fractions and a seeded generator, so the same input and seed always give the same split. With a label field the split is stratified per label; with a group field all rows of one group (for example one customer or one document) land in the same split to prevent leakage.","last_updated":"2026-11-24T10:18:00.465Z","schemes":["exact"]}