Interactively testing a model in the sandbox.
Slai provides two ways to test your models:
You can write unit tests for your models in test.py
. For example, a basic test suite to verify the output of your model might look like this:
You can run your tests by clicking the Test button in the sandbox.
Slai also provides an interactive test client based on the input and output data types you define in the handler.py
file.
For example, suppose we’ve defined a single string field as input, and two string fields as output.
The test console would generate a schema based on the handler fields defined above:
If you’ve already deployed your model, you can run your test against the live model in the Request Type toggle menu.
Development runs the test against the current model in the sandbox. Live runs the test against the deployed model.