Enable monitoring
To start uploading ongoing monitoring results for a model to ValidMind, you enable monitoring in your code snippet and then select a monitoring template. You can enable monitoring for both new and existing models.
Enable monitoring with two steps:
Prerequisites
Add monitoring=True
to your code snippet
ValidMind generates a unique code snippet for each registered model to connect with your developer environment. You initialize the ValidMind Library with this code snippet, which ensures that your documentation and tests are uploaded to the correct model when you run the notebook.
To enable ongoing monitoring for a model, add monitoring=True
to your code snippet:
In the ValidMind Platform, either register a new model2 or locate an existing model:
- In the left sidebar, click Model Inventory.
- Select a model or find your model by applying a filter or searching for it.3
Copy the code snippet for the model:
- In the left sidebar that appears for your model, click Getting Started.
- Locate the code snippet and set enable ongoing monitoring to true.
- Click Copy snippet to clipboard.
Paste the snippet into your development source code.4
Confirm that
monitoring=True
is present in thevm.init
method, similar to this example:import validmind as vm vm.init(="https://api.prod.validmind.ai/api/v1/tracking", api_host="...", api_key="...", api_secret="...", model=True monitoring )
Select a monitoring template
Before you can start sending ongoing monitoring data from your developer environment to ValidMind, you must select a monitoring template:
In the ValidMind Platform, click Model Inventory in the left sidebar.
Select a model or find your model by applying a filter or searching for it.5
In the left sidebar, click Ongoing Monitoring.
From the template drop-down, select one of the available monitoring templates.
Click Use Template to apply your desired template.
- After you select a template, the initial document where your ongoing monitoring results will be stored becomes available.
- Review this documents structure to confirm that it meets your requirements, then start running your code to populate the template with monitoring results.
Troubleshooting
If you see errors similar to this one when running your code, make sure that you have selected your monitoring template and then re-run your code:
APIRequestError: Please select an ongoing monitoring template on the ValidMind Platform first
What’s next
After you have enabled ongoing monitoring and run your code to generate some output, you can start reviewing the monitoring results.6