← Back to directory

Fit a classification or regression CART tree with depth and leaf limits, readabl...

https://www.brainiac.software/api/v1/predictive-analytics/decision-tree-train

Overview

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

Protocol x402 (POST)
Price $0.03
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Train a CART Decision Tree
Source bazaar
Indexed 2026-11-24 19:01:01

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "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

{ "example": { "caps": { "maxColumns": 100, "maxRows": 50000 }, "droppedRows": 0, "featureImportance": { "age": 0, "income": 1 }, "limitations": [ "CART with midpoint thresholds, Gini or MSE, ties broken by lower column index then lower threshold.", "Outputs are statistical calculations on caller-supplied inputs for human review. They are not legal, medical, credit, t" ], "predictions": [ 1 ], "rowsUsed": 10, "rules": [ "if income <= 65 then 0 (n=5, purity 1)", "if income > 65 then 1 (n=5, purity 1)" ], "sources": [ { "retrievedAt": "2026-11-14", "source": "Caller-supplied tabular data processed locally", "status": "ok", "url": "https://www.brainiac.software/api/v1/predictive-analytics" } ], "trainAccuracy": 1, "tree": { "feature": "income", "left": { "value": 0 }, "right": { "value": 1 }, "threshold": 65 }, "warnings": [] }, "type": "json" }