Skip to content

aleximmer/SwellBoard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwellBoard

How to track using Sacred

Each experiment should be the run for a particular model. Therefore, we expect a particular addition to the configuration. The easiest way is to run all experiments using with swell and define the variable tag within the named configuration.

@ex.named_config
def swell():
    model_tag = "Neural Network"

Several experiments can have the same tag and would ideally conform to the same structure. For example, the tag Neural Network would group all runs that have been finished using a neural network model and make them easily comparable. This allows for simpler structuring of the visualization and selection of runs and experiments.

Further, we allow for a benchmark of final performance metrics and correlation with parameters of the run. For this to work properly, the experiment's main should return the metrics of interest. The configuration is automatically used without further adjustment. To return final metrics, the main of sacred should look as follows

@ex.automain  # or just main
def experiment(**kwargs)
    ...
    # run model and collect metrics and artifacts as usual
    return {
        'acc': x,
        'max-acc': max(xs)
        'val-acc': y,
        'metric_1': z
    }

Ideally, all experiments under one group of model tags should return the same final metrics to get the most of the comparison.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published