DebugLoggerCallback
Pretty-print EVERYTHING handed to each callback hook - every lifecycle
and loop event, with its arguments summarized. Pure introspection (no
persistence); drop it into callbacks: to see exactly what the logger
callbacks receive and in what order.
Attributes
attributenamestr= 'debug_logger'attributeConfigtype= DebugLoggerConfigattributemax_len= int(max_len)attributemax_pred_rows= int(max_pred_rows)Functions
func__init__(self, *, max_len=400, max_pred_rows=3) -> Noneparamselfparammax_lenint= 400parammax_pred_rowsint= 3Returns
Nonefunc_short(self, v) -> strparamselfparamvAnyReturns
strfunc_ctx(self, ctx) -> dictparamselfparamctxAnyReturns
dictfunc_state(self, state) -> dictparamselfparamstateAnyReturns
dictfunc_emit(self, hook, fields) -> NoneparamselfparamhookstrparamfieldsdictReturns
Nonefuncon_experiment_start(self, ctx)paramselfparamctxReturns
Nonefuncon_group_start(self, ctx, group_name)paramselfparamctxparamgroup_nameReturns
Nonefuncon_run_start(self, ctx)paramselfparamctxReturns
Nonefuncon_benchmark_eval(self, ctx, eval_result, predictions, *, step=None)paramselfparamctxparameval_resultparampredictionsparamstep= NoneReturns
Nonefuncon_run_end(self, ctx, run_result, arm)paramselfparamctxparamrun_resultparamarmReturns
Nonefuncon_experiment_end(self, ctx, result)paramselfparamctxparamresultReturns
Nonefuncon_train_start(self, state)paramselfparamstateReturns
Nonefuncon_step_end(self, state, step_idx, batch, metrics)paramselfparamstateparamstep_idxparambatchparammetricsReturns
Nonefuncon_eval(self, state, step_idx, eval_name, metrics)paramselfparamstateparamstep_idxparameval_nameparammetricsReturns
Nonefuncon_checkpoint(self, state, row)paramselfparamstateparamrowReturns
Nonefuncon_train_end(self, state, artifacts)paramselfparamstateparamartifactsReturns
None