Register Model
register_modelRegisters a SAS model in SAS Model Manager from a CAS analytic store or DATA step score code, storing its variables, properties and score code.
Instructions
Register a SAS model in SAS Model Manager with PROC REGISTERMODEL.
Takes either an analytic store in CAS (astore_caslib +
astore_table, as written by savestate rstore=) or DATA step
score code (score_code). Not Python or DS2 models. The procedure
stores the model's variables, properties and score code, and with
assessment its fit statistics, ROC and lift. It runs in a compute
session of its own and takes 5–30 seconds.
The project is project_id, or the project named project in the
repository (created there when missing, in project_folder).
A model with the same name already in the project is refused
unless replace is true. Replacing deletes that model and creates
one with a new ID, which loses its score tests, publish history and
monitoring: ask the user before passing replace.
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": {
"name": "<name>"
},
"name": "register_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The model's name in the project. | |
| modeler | No | Optional name of who built the model. | |
| project | No | Project name (found or created in ``repository``). | |
| replace | No | Replace a model of the same name (see above). | |
| function | No | CLASSIFICATION or PREDICTION, as a keyword. | |
| algorithm | No | The algorithm, as a keyword: TREE, FOREST, GRADBOOST, LOGISTIC, REGRESSION, NEURAL, SVM, ... | |
| assessment | No | Compute fit statistics, ROC and lift (default: when a data table and a target are given). | |
| data_table | No | The table the model was trained on. It defines the input variables of DATA step code and is needed for assessment. | |
| project_id | No | An existing project's ID, instead of ``project``. | |
| repository | No | Repository name (default: the deployment's ``MCP_DEFAULT_MODEL_REPOSITORY``, ``Public`` unless changed). | |
| score_code | No | DATA step score code, instead of an analytic store. | |
| data_caslib | No | Caslib of the training or validation table. | |
| description | No | Optional description. | |
| astore_table | No | The analytic store table. | |
| target_event | No | The event value of a binary or nominal target, such as ``1``. | |
| target_level | No | ``binary``, ``nominal`` or ``interval``. | |
| astore_caslib | No | Caslib of the analytic store table. | |
| project_folder | No | Folder in the repository for a new project; one folder name, not a path. | |
| target_variable | No | The target variable. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||