Tests for Exact Values

Check if the model consistently produces the same result between multiple test runs.

We'll cover the following

Regression tests with exact values

Engineers build an ML pipeline with many things encapsulated deeply under the hood. This leads to a significant chance of unexpected deviation after minor or unrelated changes from first sight.

For example, we may update the pandas version to get some new functionality, which leads to implicitly updating numpy. Therefore, the result of some ML training pipelines will diverge a bit because of the introduced optimization, let’s say in np.linalg.

To be informed about such a situation, we can prepare a regression test checking the exact value of some pipelines. Let’s look at the test below:

Get hands-on with 1200+ tech skills courses.