03004b89449ecf9224d0935c79c17728452ce95d,dl/callbacks.py,Logger,on_epoch_end,#Logger#Any#,106

Before Change


            "Starting training with params:\n{}\n\n".format(state))

    def on_epoch_end(self, state):
        for postifx, (k, v) in zip(["", "\n"], state.epoch_metrics.items()):
            self.logger.info(f"{state.epoch} * Epoch ({k}) metrics: " +
                             self._get_metrics_string(v) + postifx)

After Change


                "Starting training with params:\n{}\n\n".format(state))

    def on_epoch_end(self, state):
        if self.logger is not None:
            for k, v in state.epoch_metrics.items():
                self.logger.info(
                    f"{state.epoch} * Epoch ({k}) metrics: " +
                    self._get_metrics_string(v))
            self.logger.info("\n")

    @staticmethod
    def _get_logger(log_filepath):
        logger = logging.getLogger(log_filepath)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Scitator/catalyst
Commit Name: 03004b89449ecf9224d0935c79c17728452ce95d
Time: 2018-10-08
Author: scitator@gmail.com
File Name: dl/callbacks.py
Class Name: Logger
Method Name: on_epoch_end


Project Name: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/base_classes.py
Class Name: ComplexFeaturizer
Method Name: featurize


Project Name: Infinidat/infi.clickhouse_orm
Commit Name: 5ea20a11a9d59eab637a23e407a8489280704b7a
Time: 2017-10-10
Author: work_shvein_mihail@mail.ru
File Name: src/infi/clickhouse_orm/migrations.py
Class Name: AlterTable
Method Name: apply