chmncc.early_stopper package

Submodules

chmncc.early_stopper.early_stopper module

Just a simple Early Stopper

class chmncc.early_stopper.early_stopper.EarlyStopper(patience: int = 1, min_delta: int = 0)[source]

Bases: object

EarlyStopper class

early_stop(validation_loss: float) bool[source]

Stop the execution if the patience treshold is reached :param validation_loss [int]: validation loss

Returns:

whether to stop [bool]

Module contents

Module which contains an early stopper