82d414fb55933e83554ad62ab27b164d905860e8,dl/runner.py,AbstractModelRunner,prepare_callbacks,#,351

Before Change


        :return: OrderedDict with callbacks
        
        assert len(kwargs) == 0
        raise NotImplementedError


class ClassificationRunner(AbstractModelRunner):

After Change


        :param **kwargs: callbacks params
        :return: OrderedDict with callbacks
        
        callbacks = OrderedDict()

        for key, value in kwargs.items():
            callback = UtilsFactory.create_callback(**value)
            // @TODO: remove hack
            if isinstance(callback, CheckpointCallback) and resume is not None:
                callback.resume = resume
            if isinstance(callback, InferCallback) and out_prefix is not None:
                callback.out_prefix = out_prefix
            callbacks[key] = callback

        return callbacks


class ClassificationRunner(AbstractModelRunner):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: Scitator/catalyst
Commit Name: 82d414fb55933e83554ad62ab27b164d905860e8
Time: 2018-12-11
Author: scitator@gmail.com
File Name: dl/runner.py
Class Name: AbstractModelRunner
Method Name: prepare_callbacks


Project Name: Scitator/catalyst
Commit Name: be1fdf1f22128ab2b3b91e58f7eea1129d361476
Time: 2019-02-17
Author: poletaev.va@gmail.com
File Name: catalyst/dl/experiments/experiment.py
Class Name: ConfigExperiment
Method Name: get_loaders


Project Name: explosion/spaCy
Commit Name: 3e8f136ba7e400dc046e4a4571ffd3def948daf0
Time: 2019-09-09
Author: ines@ines.io
File Name: spacy/lookups.py
Class Name: Lookups
Method Name: from_bytes