def _init( self, log_on_batch_end: bool = False, log_on_epoch_end: bool = True, ): """@TODO: Docs. Contribution is welcome.""" super()._init() the_warning = DeprecatedWarning( self.__class__.__name__, deprecated_in="20.03", removed_in="20.04", details="Use AlchemyLogger instead.", ) warnings.warn(the_warning, category=DeprecationWarning, stacklevel=2) self.log_on_batch_end = log_on_batch_end self.log_on_epoch_end = log_on_epoch_end if (self.log_on_batch_end and not self.log_on_epoch_end) or (not self.log_on_batch_end and self.log_on_epoch_end): self.batch_log_suffix = "" self.epoch_log_suffix = "" else: self.batch_log_suffix = "_batch" self.epoch_log_suffix = "_epoch"
def _init( self, log_on_batch_end: bool = False, log_on_epoch_end: bool = True, checkpoints_glob: List = None, ): super()._init() the_warning = DeprecatedWarning( self.__class__.__name__, deprecated_in="20.03", removed_in="20.04", details="Use WandbLogger instead.", ) warnings.warn(the_warning, category=DeprecationWarning, stacklevel=2) self.log_on_batch_end = log_on_batch_end self.log_on_epoch_end = log_on_epoch_end self.checkpoints_glob = checkpoints_glob if (self.log_on_batch_end and not self.log_on_epoch_end) or ( not self.log_on_batch_end and self.log_on_epoch_end ): self.batch_log_suffix = "" self.epoch_log_suffix = "" else: self.batch_log_suffix = "_batch" self.epoch_log_suffix = "_epoch"
def _init( self, log_on_batch_end: bool = False, log_on_epoch_end: bool = True, ): super()._init() the_warning = DeprecatedWarning(self.__class__.__name__, deprecated_in="20.03", removed_in="20.04", details="Use NeptuneLogger instead.") warnings.warn(the_warning, category=DeprecationWarning, stacklevel=2) self.log_on_batch_end = log_on_batch_end self.log_on_epoch_end = log_on_epoch_end