Skip to main content
Although the majority of the Vals Platform is designed to be used to evaluate and tune a model during development, it is also possible to use our operators during live deployments, via the SDK tool. First, ensure you have the Vals CLI/SDK installed if you do not already.
Next, import the evaluate function.
This function takes two parameters, the first is the output from your model, the second is an array of checks. Each check should be a dict with operator and optionally, criteria, defined. For example:

End-to-End Example

Here is an end-to-end example of querying a model and evaluating the live output with Vals.
Output: