Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To add a drift monitor to your model, you will add an existing “associated” model to your model. Below are the steps to accomplish this. For tutorial purposes, these instructions use all out-of-the-box and publicly available content provided by ModelOp, focusing on the Consumer Linear Demo and its related assets.

Define thresholds for your model

  1. As mentioned in the Monitoring Concepts article, ModelOp Center uses decision tables to define the thresholds within which the model should operate for the given monitor.

  2. The first step is to define these thresholds. For this tutorial, we will leverage the example Data-drift.dmn decision table. This assumes that the out-of-the-box Data Drift Detector is used, which leverages Kolmorgov-Smirnoff to calculate changes in the distributions between production and training data, outputting p-values. Specifically, this drift detector ensures that the below critical features from the Consumer Linear Demo model are within specification.

  3. Image Modified
  4. Repeat for the provided Concept-drift.dmn file Performance-test.dmn

  5. Save the files locally to your machine.

Associate Monitor models to snapshot

  1. Navigate to the specific model snapshot

    1. Using the Associated Models widget, create a data drift association

    2. Use the provided data and the DMN you made in step 2.

      1. Use the provided data and the DMN you made in step 2.

    3. Click Save.

    4. The monitor “associated model” will be saved and now ready to run against the model’s specific snapshot

Schedule the Monitor

  1. Schedule. Monitors can be scheduled to run using your preferred enterprise scheduling capability (Control-M, Airflow, Autosys, etc.)

    1. While the details will depend on the specific scheduling software, at the highest level, the user simply needs to create a REST call to the ModelOp Center API. Here are the steps:

      1. Obtain the Model snapshot’s unique ID, which can be obtained from the Model snapshot screen. Simply copy the ID from the URL bar:

        1. Example:

          Image RemovedImage Added
      2. Within the scheduler, configure the REST call to ModelOp Center’s automation engine to trigger the monitor for your model:

        1. Obtain a valid auth token

        2. Make a call to the ModelOp Center API to initiate the monitor

        3. Example:

  2. Monitoring Execution: once the scheduler triggers the monitoring job, the relevant model life cycle will initiated the specific monitor, which likely includes:

    1. Preparing the monitoring job with all artifacts necessary to run the job

    2. Creating the monitoring job

    3. Parsing the results into viewable test results

    4. Comparing the results against the thresholds in the decision table

    5. Taking action, which could include creating a notification and/or opening up an incident in JIRA/ServiceNow/etc.

Viewing Monitoring Notifications

...

  1. Notifications: typically

    Typically, the model life cycle that runs the monitor will create notifications, such as:

    1. A monitor has been started

    2. A monitor has run successfully

    3. A monitor’s output (model test) has failed

    4. These Notifications can be viewed in the home page of ModelOp Center’s UI:

      1. Image Modified

Viewing

...

Monitoring Job Results

  1. All monitor job results are persisted and can be viewed directly by clicking the specific “result” in the “Model Tests” section of the model snapshot page:

Drift Monitor Details

As the same data set may serve several models, you can write one drift detection model to associate to several models. This association is made during the Model Lifecycle process. The drift model can compare the training data of the associated models to a given batch of data. The following is a simple example:

...