integrations#

class VisualDLCallback(vdl_writer=None)[source]#

Bases: TrainerCallback

A [TrainerCallback] that sends the logs to [VisualDL](https://www.paddlepaddle.org.cn/paddle/visualdl). :param vdl_writer: The writer to use. Will instantiate one if not set. :type vdl_writer: LogWriter, optional

on_train_begin(args, state, control, **kwargs)[source]#

Event called at the beginning of training.

on_log(args, state, control, logs=None, **kwargs)[source]#

Event called after logging the last logs.

on_train_end(args, state, control, **kwargs)[source]#

Event called at the end of training.

class AutoNLPCallback[source]#

Bases: TrainerCallback

A [TrainerCallback] that sends the logs to [Ray Tune] for [AutoNLP]

on_evaluate(args, state, control, **kwargs)[source]#

Event called after an evaluation phase.