kiwi.trainers package¶
Submodules¶
kiwi.trainers.callbacks module¶
-
class
kiwi.trainers.callbacks.
Checkpoint
(output_dir, checkpoint_save=False, checkpoint_keep_only_best=0, checkpoint_early_stop_patience=0, checkpoint_validation_steps=0)[source]¶ Bases:
object
Class for determining whether to evaluate / save the model.
-
check_in
(trainer, stats, epoch=None, step=None)[source]¶ Saves stat summary and handles checkpoint saving.
-
-
exception
kiwi.trainers.callbacks.
EarlyStopException
(*args, **kwargs)[source]¶ Bases:
StopIteration
kiwi.trainers.linear_word_qe_trainer module¶
-
class
kiwi.trainers.linear_word_qe_trainer.
LinearWordQETrainer
(model, optimizer_name, regularization_constant, checkpointer)[source]¶ Bases:
kiwi.models.linear.linear_trainer.LinearTrainer
-
model
¶
-