Predict with a trained model
predictScores inline rows with a trained model, returning calibrated classification probabilities or regression values per row; use it for inference when all rows share the training columns.
Instructions
Score rows with a model trained by train_model and return {predictions, model_name, latency_ms, row_count}: calibrated probabilities in [0, 1] for classification (positive-class probability) or numbers for regression, one per input row. Use it for inference on rows you pass inline; use describe_model to check a model's metrics and features first. Every row must have the same columns, named like the training columns. Your tables are not modified.
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": {
"model_name": "<model_name>",
"inputs": "<inputs>"
},
"name": "predict"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | Rows to score, as objects mapping column names to values, e.g. [{"col1": 1, "col2": "a"}]; all rows need the same columns. | |
| model_name | Yes | Model name, as registered by `train_model` or listed by `list_models`. | |
| return_proba | No | Accepted for compatibility; classification models always return calibrated probabilities. |