models.run
  • 30 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

models.run

  • Dark
    Light
  • PDF

Article summary

Description

Runs a machine learning (ML) model that has been previously installed using ai.models.install.


Input Parameters

NameTypeRequiredDescription
keyTextYesUnique model identifier used during ai.models.install
inputTextYesModel 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);

Remarks

Use this function to run a machine learning (ML) model that has been previously installed using ai.models.install.


What's Next