{"slug":"www-brainiac-software-api-v1-predictive-analytics-decision-t-f92f6a","title":"Fit a classification or regression CART tree with depth and leaf limits, readabl","host":"www.brainiac.software","method":"POST","resource":"https://www.brainiac.software/api/v1/predictive-analytics/decision-tree-train","category":"other","description":"Fit a classification or regression CART tree with depth and leaf limits, readable rules, feature importance and optional predictions. Docs: https://www.brainiac.software/api/predictive-analytics/decision-tree-train","price_listed":0.03,"price_asked":0.03,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":332,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"columns":["age","income"],"maxDepth":2,"minSamplesLeaf":1,"predict":[[33,66]],"rows":[[25,40],[35,60],[45,80],[20,20],[50,90],[23,30],[40,70],[60,100],[30,50],[55,95]],"target":[0,0,1,0,1,0,1,1,0,1],"task":"classification"},"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":{"columns":{"description":"columns supplied by the caller for this operation.","example":["age","income"],"items":{"maxLength":64,"minLength":1,"type":"string"},"type":"array"},"maxDepth":{"description":"max Depth supplied by the caller for this operation.","example":2,"maximum":20,"minimum":1,"type":"integer"},"minSamplesLeaf":{"description":"min Samples Leaf supplied by the caller for this operation.","example":1,"maximum":1000,"minimum":1,"type":"integer"},"predict":{"description":"predict supplied by the caller for this operation.","example":[[33,66]],"items":{"items":{"type":"number"},"type":"array"},"type":"array"},"rows":{"description":"rows supplied by the caller for this operation.","example":[[25,40],[35,60],[45,80],[20,20],[50,90],[23,30],[40,70],[60,100],[30,50],[55,95]],"items":{"items":{"type":["number","null"]},"type":"array"},"type":"array"},"target":{"description":"target supplied by the caller for this operation.","example":[0,0,1,0,1,0,1,1,0,1],"items":{"type":["number","string"]},"type":"array"},"task":{"description":"task supplied by the caller for this operation.","enum":["classification","regression"],"example":"classification","type":"string"}},"required":["task","columns","rows","target"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":804,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":287,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":323,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":341,"error":null}],"description_full":"Fit a classification or regression CART tree with depth and leaf limits, readable rules, feature importance and optional predictions. Docs: https://www.brainiac.software/api/predictive-analytics/decision-tree-train","last_updated":"2026-11-24T15:06:42.875Z","schemes":["exact"]}