Predictive Analytics · Decision Tree Train
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
POST https://www.brainiac.software/api/v1/predictive-analytics/decision-tree-train
0.03 USDC on Base · payTo 0x6428665E83F503904571104311bB78CBb29b975c
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"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"
}{
"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": []
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Sellers · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human store: human checkout, card & crypto · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | pending / 100 · breakdown |
|---|---|
| Probe uptime (30d) | — over 0 probes · daily |
| Avg 402 latency | — ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
How to call
POST https://www.brainiac.software/api/v1/predictive-analytics/decision-tree-train · input in body · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"task": {
"type": "string",
"enum": [
"classification",
"regression"
],
"description": "task supplied by the caller for this operation.",
"example": "classification"
},
"columns": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"description": "columns supplied by the caller for this operation.",
"example": [
"age",
"income"
]
},
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
}
},
"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
]
]
},
"target": {
"type": "array",
"items": {
"type": [
"number",
"string"
]
},
"description": "target supplied by the caller for this operation.",
"example": [
0,
0,
1,
0,
1,
0,
1,
1,
0,
1
]
},
"maxDepth": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"description": "max Depth supplied by the caller for this operation.",
"example": 2
},
"minSamplesLeaf": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "min Samples Leaf supplied by the caller for this operation.",
"example": 1
},
"predict": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
},
"description": "predict supplied by the caller for this operation.",
"example": [
[
33,
66
]
]
}
},
"required": [
"task",
"columns",
"rows",
"target"
],
"additionalProperties": false
}Output schema
{
"type": "object"
}curl -i -X POST 'https://www.brainiac.software/api/v1/predictive-analytics/decision-tree-train' \
-H 'content-type: application/json' -d '{"task":"classification","columns":["age","income"],"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],"maxDepth":2,"minSamplesLeaf":1,"predict":[[33,66]]}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs