d560f8c93fa1819b03b8ff79d406d06166cdadd6,luminoth/eval.py,,evaluate,#Any#Any#Any#Any#Any#Any#Any#Any#,27
Before Change
custom_config = load_config(config_files)
// If the config file is empty, our config will be the base_config for the
// default model.
custom_config_model = custom_config.get("model", {} )
model_type = custom_config_model.get("type", DEFAULT_MODEL)
model_class = get_model(model_type)
After Change
custom_config = load_config(config_files)
// If the config file is empty, our config will be the base_config for the
// default model.
try:
model_type = custom_config["model"]["type"]
except KeyError:
raise KeyError("model.type should be set on the custom config.")
model_class = get_model(model_type)
config = get_model_config(
model_class.base_config, custom_config, override_params,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: tryolabs/luminoth
Commit Name: d560f8c93fa1819b03b8ff79d406d06166cdadd6
Time: 2017-10-20
Author: iangtayler@gmail.com
File Name: luminoth/eval.py
Class Name:
Method Name: evaluate
Project Name: chainer/chainercv
Commit Name: 1b0348a9b65fabfb5d45534cfde25c504890a56f
Time: 2017-06-06
Author: yuyuniitani@gmail.com
File Name: chainercv/extensions/semantic_segmentation/semantic_segmentation_evaluator.py
Class Name: SemanticSegmentationEvaluator
Method Name: evaluate
Project Name: NifTK/NiftyNet
Commit Name: 45297dae864437ae83c524c71ecdcf9a7608ed0d
Time: 2017-12-11
Author: wenqi.li@ucl.ac.uk
File Name: doc/source/conf.py
Class Name:
Method Name: