Contents x
- Welcome
- Dr. Know
- Dr. Know Go
- Dr. Know Admin
- Apps
- Storyboards
- Clinical Query Language
- Integrations
models.run
Article summary
Did you find this summary helpful?
Thank you for your feedback
Description
Runs a machine learning (ML) model that has been previously installed using ai.models.install.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
key | Text | Yes | Unique model identifier used during ai.models.install |
input | Text | Yes | Model input object |
Returns
Type: Any
Returns a model-specific result type.
Examples
// inside the Ux.Change script...
// prepare input required by model
var input = {
"property1": 11.22,
"property2": 32.64
};
// run model for prediction results
var results = ai.models.run("riskModel", input);
JavaScript
Remarks
Use this function to run a machine learning (ML) model that has been previously installed using ai.models.install.