nip.utils.experiments#
Experiment runners.
Contains utilities for running hyperparameter experiments. These can be run either sequentially or in parallel using a pool of workers.
The workflow is as follows:
Call the constructor with the hyperparameter grid and the experiment function.
(Optional) Add any additional arguments to the arg parser using
experiment.parser.add_argument
.Call
experiment.run()
to run the experiment.
See the docstrings of the classes for more details.
Functions
|
Return the input string. |
Classes
|
Arguments to the function which runs a single experiment. |
|
A base class to run an experiment over a grid of hyperparameters. |
|
Multi-line formatter. |
|
A class to run an experiment over a grid of hyperparameters in parallel. |
|
A logger adapter that adds a prefix to the log message. |
|
A class to run an experiment over a grid of hyperparameters in sequence. |
|
A TqdmMultiProcessPool that allows setting maxtasksperchild. |