Model Tuning & Experimentation

Domino provides a great way to iterate on your models, because it lets you run many experiments in parallel on powerful hardware and automatically track results. We have added two powerful new features to make that workflow even easier: Run Comparisons and Diagnostic Statistics.

Run Comparison

Run comparison makes it really easy to figure out how two experiments differed in their inputs, and how those changes affected the results that were generated.

Comparing two runs is easy: simply select the two runs you’re interested in and hit the “Compare” button:

This will generate a report, summarizing the differences between those two runs:

There are three sections: (1) a summary of the differences (2) the differences between the results that were generated by the two runs and (3) the differences between the input code and data.  

Remember that Domino snapshots the state of all the files in the project before the run starts (the “inputs”) and snapshots the project after the run completes (the “outputs”).  Any files that were added or modified between the input and outputs are considered “results.”  

To quickly navigate between the sections, you can use these links, located immediately below the run comparison table at the top:


Domino will do its best to show you differences as sensibly as it can.  For text, we will highlight the lines in the file that are different:

For files that we know how to render, we will render those files side-by-side so you can easily visually compare:

And for files Domino doesn’t know how to render, we’ll give you some simple metadata and links to download the exact version so you can look at them on your own computer:

Diagnostic Statistics 

Understanding the performance of a particular model can be quite complex, and often it’s useful to see key metrics at a glance — metrics like area under curve, F1 score, log-likelihood — across all your runs, to allow you to quickly pre-prune which experiments are worth investigating further.

Domino’s Diagnostic Statistics functionality allows you to do just that!

To enable this, write a file dominostats.json to the root of your project directory that has the diagnostic statistics you’re interested in showing.  Here is an example in R:

diagnostics = list("R^2" = 0.99, "p-value" = 0.05, "sse" = 10.49)
writeLines(toJSON(diagnostics), fileConn)

And in Python:

import json
with open('dominostats.json', 'wb') as f:
    f.write(json.dumps({"R^2": 0.99, "p-value": 0.05, "sse": 10.49}))

If Domino detects this file, it will parse the values out and show them on the Runs Dashboard:

Also, run comparisons will show these statistics rendered in a table as well to make it even easier to compare their performance:


Was this article helpful?
0 out of 0 found this helpful