Skip to content

caslScore

devakumaraswamy edited this page Jan 21, 2020 · 5 revisions

caslScore ⇒ promise

Score data in casl

Returns: promise -

returns the scores as an object

Param Type Description
store object

restaf store

session object

cas session

scenario object

scenario values

The result will also be a simple object

Scenario

This function can handle the following deployments of the model

  1. Model is published to a CAS destination
  2. Model code is datastep code stored in a modelTable(sashdat)
  3. Model code is in an astore stored in a sashdat.

The form of scenario depends on where the model is stored and its form.

{
let scenario = {                                                                    /* (3) */
            modelName: 'model name if published to CAS destination else ignored',
            model    : { caslib: 'model caslib' name: 'model/sashdat name' },
            scenario : {
                var1: 4.3,
                var2: 20,
                ...
        };

Example

See this for details on the different scoring scenarios

Clone this wiki locally