Skip to content

no_op_trainer

allennlp.training.no_op_trainer

[SOURCE]


NoOpTrainer

@Trainer.register("no_op")
class NoOpTrainer(Trainer):
 | def __init__(self, serialization_dir: str, model: Model) -> None

Registered as a Trainer with name "no_op".

train

class NoOpTrainer(Trainer):
 | ...
 | def train(self) -> Dict[str, Any]

get_checkpoint_state

class NoOpTrainer(Trainer):
 | ...
 | def get_checkpoint_state(self) -> TrainerCheckpoint

get_best_weights_path

class NoOpTrainer(Trainer):
 | ...
 | def get_best_weights_path(self) -> Optional[str]