5ee3929ba2b721f73f4d6e9088b6c4dcba0141b7,deeppavlov/core/common/params.py,,from_params,#Any#Any#,9
Before Change
subcl_params.pop("name")
config_params[reg_name] = from_params(subcl, subcl_params)
except KeyError:
raise ConfigError(
"Your registered classes should have "name" keyword in the config.")
return cls(**dict(config_params, **kwargs))
After Change
config_params = {}
for sp in params.keys():
try:
if sp != "name":
config_params[sp] = params[sp]
except KeyError:
print("Using default value for parameter `{}`.".format(sp))
// Occurs when params[sp] throws KeyError. It means that the needed configuration is
// absent in the json file and a default configuration from class constructor should
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: deepmipt/DeepPavlov
Commit Name: 5ee3929ba2b721f73f4d6e9088b6c4dcba0141b7
Time: 2017-12-13
Author: ol.gure@gmail.com
File Name: deeppavlov/core/common/params.py
Class Name:
Method Name: from_params
Project Name: deepmipt/DeepPavlov
Commit Name: 00de689e6624b4b3c312c921226ad23f49a79229
Time: 2018-01-19
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: load
Project Name: deepmipt/DeepPavlov
Commit Name: 5390c650dadd1e86b6c43543ac0ed384e8ebfc4d
Time: 2018-05-15
Author: yoptar@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: save