Overview
This tutorial runs through how to use Arize in a Continuous Integration and Continuous Deployment workflow for models. This tutorial is based on Continuous Machine Learning Groups work:CML · Continuous Machine Learning
CML · Continuous Machine Learning”
- Integrate Arize into the CI/CD workflow
- Run Arize on Validation data every time a new model version is checked in
- Capture data in the platform to compare different validated models
Workflow Overview
The CI/CD workflow for models with CML involves a training script and a linkage to Github actions.
CI CD CML Example
- A model directory is setup on Github which contains both model file and train scripts for CML
- Train scripts are built to run a set of inferences across any newly built model
- GitHub actions are setup to run the train script on any model checkin
-
On Model Checkin the train script is run
- The train Script logs the validation inferences to Arize
- Checks within the Arize platform can be setup to run on every new validation batch of data. These checks can include comparing against previous model data or fixed levels analysis
- On check failure dashboards can be created for model analysis
- Future*: The ability to quickly poll through API the validation checks as part of Github actions for pass / fail*
tutorials_python/train.py at main · Arize-ai/tutorials_python
GitHub
- Train and Score the latest model
