9a8724d219ce8758a652358c6578b09eb193a0df,catalyst/dl/experiment/config.py,ConfigExperiment,_get_scheduler,#,346
Before Change
key_value_flag = params.pop("_key_value", False)
if key_value_flag:
scheduler = {}
for scheduler_key, scheduler_params in params.items():
scheduler[
scheduler_key
] = ConfigExperiment._get_scheduler( // noqa: WPS437
optimizer=optimizer, **scheduler_params
)
else:
scheduler = SCHEDULERS.get_from_params(
**params, optimizer=optimizer
)
After Change
*, optimizer: Union[Optimizer, Dict[str, Optimizer]], **params: Any
) -> Union[Scheduler, Dict[str, Scheduler]]:
optimizer_key = params.pop("_optimizer", None)
optimizer_ = optimizer[optimizer_key] if optimizer_key else optimizer
scheduler = SCHEDULERS.get_from_params(**params, optimizer=optimizer_)
return scheduler
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
Project Name: Scitator/catalyst
Commit Name: 9a8724d219ce8758a652358c6578b09eb193a0df
Time: 2020-08-25
Author: 19803638+bagxi@users.noreply.github.com
File Name: catalyst/dl/experiment/config.py
Class Name: ConfigExperiment
Method Name: _get_scheduler
Project Name: albu/albumentations
Commit Name: 9942689f9846c59006c80718ee8db38e02ee2104
Time: 2019-09-27
Author: al.buslaev@gmail.com
File Name: albumentations/core/transforms_interface.py
Class Name: BasicTransform
Method Name: __call__
Project Name: sony/nnabla
Commit Name: ffdd950970c5953e351fa88795fe916b3465d813
Time: 2018-06-13
Author: Yukio.Oobuchi@sony.com
File Name: python/src/nnabla/utils/data_source_implements.py
Class Name: CacheDataSource
Method Name: _get_data