nip.utils.experiments.ExperimentFunctionArguments#

class nip.utils.experiments.ExperimentFunctionArguments(combo: dict, run_id: str, cmd_args: ~argparse.Namespace, common_run_name: str, tqdm_func: callable, child_logger_adapter: ~logging.Logger, global_tqdm_step_fn: callable = <function ExperimentFunctionArguments.<lambda>>)[source]#

Arguments to the function which runs a single experiment.

Parameters:
  • combo (dict) – A single combination of hyperparameters.

  • run_id (str) – A unique identifier for the run.

  • cmd_args (Namespace) – The command line arguments.

  • common_run_name (str) – A name for the experiment that is common to all runs.

  • tqdm_func (callable) – A function used to create a tqdm progress bar.

  • child_logger_adapter (logging.Logger) – The logger adapter to use for logging.

Methods Summary

__eq__(other)

Return self==value.

__init__(combo, run_id, cmd_args, ...[, ...])

__repr__()

Return repr(self).

global_tqdm_step_fn()

Attributes

combo

run_id

cmd_args

common_run_name

tqdm_func

child_logger_adapter

Methods

__eq__(other)#

Return self==value.

__init__(combo: dict, run_id: str, cmd_args: ~argparse.Namespace, common_run_name: str, tqdm_func: callable, child_logger_adapter: ~logging.Logger, global_tqdm_step_fn: callable = <function ExperimentFunctionArguments.<lambda>>) None#
__repr__()#

Return repr(self).

global_tqdm_step_fn()[source]#