17cdb1b852347207251248ed1e08c1e22c7a585d,contrib/optimizers/__init__.py,,register_optimizer,#,11
Before Change
:returns: single criterion factory or list of them
for cf in optimizer_factories:
OPTIMIZERS[cf.__name__] = cf
if len(optimizer_factories) == 1:
return optimizer_factories[0]
return optimizer_factories
After Change
:param: optimizer_factories Required optimizer factory (method or type)
:returns: single optimizer factory or list of them
return register("optimizers")(*optimizer_factories)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: Scitator/catalyst
Commit Name: 17cdb1b852347207251248ed1e08c1e22c7a585d
Time: 2019-01-08
Author: tez.romach@gmail.com
File Name: contrib/optimizers/__init__.py
Class Name:
Method Name: register_optimizer
Project Name: Scitator/catalyst
Commit Name: 17cdb1b852347207251248ed1e08c1e22c7a585d
Time: 2019-01-08
Author: tez.romach@gmail.com
File Name: contrib/criterion/__init__.py
Class Name:
Method Name: register_criterion
Project Name: Scitator/catalyst
Commit Name: 17cdb1b852347207251248ed1e08c1e22c7a585d
Time: 2019-01-08
Author: tez.romach@gmail.com
File Name: dl/callbacks/__init__.py
Class Name:
Method Name: register_callback
Project Name: Scitator/catalyst
Commit Name: 39c91e07fc33ff900fc6c1bf07b332c477077c48
Time: 2019-01-09
Author: tez.romach@gmail.com
File Name: contrib/models/__init__.py
Class Name:
Method Name: register_model