WandbLoggerCallback
Log metrics + benchmark predictions to Weights & Biases.
One W&B run per arm: opened in on_run_start (so it exists before the
first step) and closed in on_run_end. wandb is imported lazily - if it
isn't installed the callback warns once and every hook no-ops (training is
never affected; :func:dispatch also isolates errors). The run URL is
surfaced on ctx.extras['wandb_url'] so a downstream logger
(evsys_logger) can record it on the dashboard run.
Attributes
attributenamestr= nameattributeConfigtype= WandbLoggerConfigattributeproject= projectattributeentity= entityattributemode= modeattributelog_every= max(1, int(log_every))attributemax_pred_rows= max(0, int(max_pred_rows))Functions
func__init__(self, *, project=None, entity=None, name=None, mode='online', log_every=1, max_pred_rows=100) -> Noneparamselfparamprojectstr | None= Noneparamentitystr | None= Noneparamnamestr | None= Noneparammodestr= 'online'paramlog_everyint= 1parammax_pred_rowsint= 100Returns
Nonefunc_lazy_wandb(self) -> AnyparamselfReturns
typing.Anyfuncon_run_start(self, ctx) -> NoneparamselfparamctxLogContextReturns
Nonefuncon_step_end(self, state, step_idx, batch, metrics) -> NoneparamselfparamstateLoopStateparamstep_idxparambatchparammetricsReturns
Nonefuncon_eval(self, state, step_idx, eval_name, metrics) -> NoneparamselfparamstateLoopStateparamstep_idxparameval_nameparammetricsReturns
Nonefuncon_benchmark_eval(self, ctx, eval_result, predictions, *, step=None) -> Noneparamselfparamctxparameval_resultparampredictionsparamstep= NoneReturns
Nonefuncon_run_end(self, ctx, run_result, arm) -> Noneparamselfparamctxparamrun_resultparamarmReturns
None