Machine Learning Model Experimentation Best Practices | Wallaroo.AI

Machine Learning Model Experimentation Best Practices

Now that you have a model running in Production, how do you know it’s adding value for your business and customers? How do you know the parameters utilized in this model are better than other parameters? How do you know what you are doing is working better than what you had in production before? These are key questions you should ask yourself before productionizing any machine learning (ML) model.

Experimentation is crucial to the ML model-building strategy. Experiments may encompass using different training and testing data, models with differing hyperparameters, running different code (even if it’s a small change), and often you may find yourself running the same code but in different environment configurations. All experiments come with completely different metrics; consequently, many Data Scientists find themselves lost in keeping track of everything due to not following experiment best practices. Let’s get started on a few we have picked up along the way.

Versioning

Why is version control important? First, it lowers any risk of erasing or writing over someone’s work or making mistakes. Second, it’s a great way to incorporate collaboration between colleagues. The most learned requirement in computer science is to ensure we have a mechanism for version control of our code, but in the Data Science and ML process, it’s more than just code requiring versioning. Notebooks, data, and the environment being utilized also need version control.

Commits

Code commits require versioning to mitigate the risk of merging production code with non-production code, as well as avoiding the risk of overwriting your peers’ code and potentially making other detrimental mistakes. What happens if you run an experiment in between commits and forget to commit this code first? These are dubbed “dirty commits” which occurs when developers don’t follow development best practices. One best practice in this scenario is to have users create a snapshot of their environment and code before running an experiment. This way, they have the option of rolling back their changes to the code and configurations before experimenting.

Hyperparameters

All ML models have hyperparameters to help control the behavior of the training process of the algorithms and have a great impact on how the model will perform. To find the optimal combinations of parameters for the best results, you will find yourself running many experiments. In doing so, keeping track of the parameters you used for each experiment can become cumbersome; consequently, many scientists find themselves re-running experiments due to forgetting all the combinations used. A best practice for experimenting with hyperparameters is to incorporate a tracking process. One way to track is to log everything via audit logging or some form of logging that will save those parameters for every experiment.

Metrics

What metrics should you track and save? Best practice: all of them. Metrics can change daily or over some time depending on the use case and situation. For example, measuring the performance of your current experiment may involve looking at a Confusion Matrix and distribution of predictions, but if you only logged the data from the distribution, you could miss out on remembering how the matrix performed and therefore waste time re-running the same experiment to gather this extra metric. Another example of metric loss is not tracking the timestamps of the data being collected; consequently, you may experience model decay and not be able to incorporate proper model retraining techniques. If you are only tracking specific metrics, you can miss out on discoveries; moreover, proactively logging as much in metrics as possible can help mitigate wasting time in the future.

A/B Testing

This form of testing is widely used by scientists to run different models against each other and compare their performance on real-time data, in a controlled environment. A best practice is to follow steps like the scientific method:

Coming up with an effective experimentation strategy can be cumbersome but following some best practices will assist in proper planning. By including versioning, commit tracking, metrics, hyperparameter tracking, and A/B testing, you will be able to keep track of all information and results of your experiments to have the needed comparisons and confidence that you know which setup produced the best results.

About Wallaroo.

Wallaroo enables data scientists and ML engineers to deploy enterprise-level AI into production simpler, faster, and with incredible efficiency. Our platform provides powerful self-service tools, a purpose-built ultrafast engine for ML workflows, observability, and an experimentation framework. Wallaroo runs in cloud, on-prem, and edge environments while reducing infrastructure costs by 80 percent.

Wallaroo’s unique approach to production AI gives any organization the desired fast time-to market, audited visibility, scalability – and ultimately measurable business value – from their AI-driven initiatives, and allows data scientists to focus on value creation, not low-level “plumbing.”

Author

Martin Bald

Sr Manager Technical Product Marketing & DevRel Community

Email for Martin Bald

Martin Bald

Sr Manager Technical Product Marketing & DevRel Community

Table of Contents

Email

Subscribe

Topics

Share

Related Blog Posts

With Machine Learning, Regression is Progress

Read More

Monitoring models for drift through Model Insights in Wallaroo

Read More

Orchestrating MLOps Through Data Connector Innovation

Read More

Integrating Machine Learning into Robotic Process Automation

Read More

Things Data Scientist Should Know About Productionizing Machine Learning

Read More

Wallaroo December 2022 Product Release Notes

Read More

With Machine Learning, Regression is Progress

Read More

Monitoring models for drift through Model Insights in Wallaroo

Read More

Orchestrating MLOps Through Data Connector Innovation

Read More

Integrating Machine Learning into Robotic Process Automation

Read More

Things Data Scientist Should Know About Productionizing Machine Learning

Read More

Wallaroo December 2022 Product Release Notes

Read More

Keep up to date with the latest ML production news sign up for the Wallaroo.AI newsletter

© 2026 Wallaroo.AI. All rights reserved.

Platform

Platform Learn how our unified platform enables ML deployment, serving, observability and optimization

Technology Get a deeper dive into the unique technology behind our ML production platform

Solutions

Solutions See how our unified ML platform supports any model for any use case

Computer Vision (AI) Run even complex models in constrained environments, with hundreds or thousands of endpoints

Resources

Resources

Blog