Random-forest OOB score and permutation importance
predictive-analytics_random-forest-importanceTrain a small seeded random forest, report out-of-bag accuracy or R², and estimate permutation feature importance with Fisher-Yates shuffles. Price $0.05 USDC. POST /api/v1/predictive-analytics/random-forest-importance. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"columns": "<columns>",
"rows": "<rows>",
"target": "<target>"
},
"name": "predictive-analytics_random-forest-importance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | rows, array. Required. | |
| seed | No | seed, integer, from -9007199254740991 to 9007199254740991. Required. | |
| task | Yes | task, string, one of classification, regression. Required. | |
| trees | No | trees, integer, from 10 to 500. Required. | |
| target | Yes | target, array. Required. | |
| columns | Yes | columns, array. Required. | |
| maxDepth | No | maxDepth, value. Required. | |
| maxFeatures | No | maxFeatures, value. Required. | sqrt |
| minSamplesLeaf | No | minSamplesLeaf, integer, from 1 to 1000. Required. | |
| permutationRepeats | No | permutationRepeats, integer, from 1 to 50. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caps | No | caps. Object. | |
| seed | No | seed. Number. | |
| sources | No | sources. Array. | |
| oobScore | No | oobScore. Number. | |
| rowsUsed | No | rowsUsed. Number. | |
| importance | No | importance. Array. | |
| droppedRows | No | droppedRows. Number. | |
| limitations | No | limitations. Array. |