nip.base_run.get_base_wandb_run_and_new_hyper_params#
- nip.base_run.get_base_wandb_run_and_new_hyper_params(hyper_params: HyperParameters) tuple[Run | None, HyperParameters][source]#
Get the base W&B run and create a new hyper-parameters object.
Depending on the
base_run_typein thehyper_params, this function either returnsNoneand the originalhyper_paramsor the base W&B run and a new hyper-parameters object with (some of) the hyper-parameters of the base run.- Parameters:
hyper_params (HyperParameters) – The hyper-parameters of the current experiment.
- Returns:
wandb_run (WandbRun or None) – The base W&B run object, specified by
hyper_params. This is an already finished run loaded using the W&B API. Ifbase_run_typeis “none”, this isNone, because we are not basing the current experiment on a previous run.new_hyper_params (HyperParameters) – The new hyper-parameters object, based on the base run. If
base_run_typeis “none”, this is the originalhyper_paramsobject.