2275ea902a701cc5b55e72a98f61acbbec4ed4c8,catalyst/dl/experiment/config.py,ConfigExperiment,get_callbacks,#ConfigExperiment#Any#,500
Before Change
for callback_name, callback_fn in default_callbacks:
is_already_present = False
for x in callbacks.values():
if check_callback_isinstance(x, callback_fn):
is_already_present = True
break
if not is_already_present:
callbacks[callback_name] = callback_fn()
// NOTE: stage should be in self.stages_config
After Change
callback_fn,
) in default_callbacks:
callback_interface = callback_interface or callback_fn
is_already_present = any(
check_callback_isinstance(x, callback_interface)
for x in callbacks.values()
)
if not is_already_present:
callbacks[callback_name] = callback_fn()
// NOTE: stage should be in self.stages_config
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: catalyst-team/catalyst
Commit Name: 2275ea902a701cc5b55e72a98f61acbbec4ed4c8
Time: 2020-09-06
Author: scitator@gmail.com
File Name: catalyst/dl/experiment/config.py
Class Name: ConfigExperiment
Method Name: get_callbacks
Project Name: NifTK/NiftyNet
Commit Name: 453269872f7e4dc9a6dc81a1c758ffc365cfc312
Time: 2017-05-22
Author: wenqi.li@ucl.ac.uk
File Name: utilities/constraints_classes.py
Class Name: ConstraintSearch
Method Name: create_list_from_constraint
Project Name: chainer/chainercv
Commit Name: 3309415b660635c6efbc66e2c1e274127be4dff9
Time: 2017-06-27
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg16.py
Class Name: VGG16
Method Name: __init__