Callback that uses the outputs of language models to add AR and TAR regularization

class ModelResetter[source]

ModelResetter(before_fit=None, before_epoch=None, before_train=None, before_batch=None, after_pred=None, after_loss=None, before_backward=None, after_backward=None, after_step=None, after_cancel_batch=None, after_batch=None, after_cancel_train=None, after_train=None, before_validate=None, after_cancel_validate=None, after_validate=None, after_cancel_epoch=None, after_epoch=None, after_cancel_fit=None, after_fit=None) :: Callback

Callback that resets the model at each validation/training step

class RNNRegularizer[source]

RNNRegularizer(alpha=0.0, beta=0.0) :: Callback

Callback that adds AR and TAR regularization in RNN training