examples directory in the MLOps agent tarball contains both sample code (snippets for manual inspection) and example code (self-contained examples that you can run) in Python and Java.
Navigate to the subdirectory for the language you wish to use and reference the respective
README for further instruction.
Examples include model configuration, data, and scripts used to create deployments and run the examples. These examples use Python to programmatically create the model package and deployment. Therefore, you must install the Python version of the MLOps library (described below).
Run code examples with Python¶
To run the Python code examples, you must install the dependencies used by the examples:
pip install -r examples/python/requirements.txt
README file in each example directory for further example-specific configuration requirements. In general, to run an example:
Initialize the model package and deployment by running:
Generate predictions and report statistics to DataRobot by running:
Verify that metrics were sent successfully by running:
Delete resources created in the example by running: