Test Score Model
test_score_modelVerify a registered SAS model runs by scoring a sample of table rows in the Model Manager compute context and returning output columns; check readiness before publishing or monitoring.
Instructions
Score a few rows with a registered model and return the scored rows.
Model Manager's own score test: it takes the first rows rows of
the table, scores them with the model in the "SAS Model Manager
compute context", waits, and returns them with the model's output
columns (for example P_BAD1 and I_BAD). Use it to check that a
model runs before publishing or monitoring it. Nothing is left behind:
the scratch tables and the score definition are removed. It takes
about 15 seconds plus a compute session start.
The table needs the model's input variables (get_model lists
them). For a whole table use score_table.
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_id": "<model_id>",
"caslib_name": "<caslib_name>",
"table_name": "<table_name>"
},
"name": "test_score_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | How many rows to score (default 10, at most 100). | |
| model_id | Yes | The model's ID. | |
| table_name | Yes | A loaded CAS table holding the model's inputs. | |
| caslib_name | Yes | Caslib of the input table. | |
| timeout_seconds | No | How long to wait for the score test (default 180). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||