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_type
in thehyper_params
, this function either returnsNone
and the originalhyper_params
or 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_type
is “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_type
is “none”, this is the originalhyper_params
object.