Testing the code and the model
Although the performance of a machine learning model that is selected and brought to this stage of the life cycle can be further tested using one or multiple datasets, there are a series of tests that need to be done in this stage to make sure of this:
- Ensuring the process of deployment and bringing the model into production goes smoothly
- Ensuring the model will work as expected from a performance and computational cost perspective
- Ensuring that using the model in production will not have legal and financial implications
Here are some such tests that can be used in this stage:
- Unit tests: These are fast tests that make sure our code runs correctly. These tests are not specific to machine learning modeling and not even to this stage. Throughout the life cycle, you need to design unit tests to make sure your data processing and modeling code runs as expected.
- A/B testing: This type of testing helps you, your team, and...