Skip to content

masDescribe

Deva Kumar edited this page Apr 7, 2020 · 2 revisions

masDescribe ⇒ object

Score using MAS

Returns: object -

  • returns object with input variables
Param Type Description
masControl object

object from masSetup

modelName string

name of model to be executed

stepName string

if not specified it will default to the first step

Example

async function example (models, payload) {
  await store.logon(payload);
let masControl = await restaflib.masSetup(store, models);
let inp = restaflib.masDescribe(masControl, models[0], 'score');
print.object(inp, 'describe for score model');
inp = inp.map((n) => {
  n.value = someValue;
  return n;
});
print.object(inp, 'updated input for score model');
let result = await restaflib.masRun (store, masControl, models[0], inp, 'score');
print.object(result, 'scoring result');
}
Clone this wiki locally