301f2d68b100683c04693669c7b1157fd8a16d6b,allennlp/training/learning_rate_schedulers.py,,,#,131

Before Change



// We just use the Pytorch LRSchedulers, so here we force them into
// Registry._registry so we can build them from params.
Registrable._registry[LearningRateScheduler] = {   // pylint: disable=protected-access
        "step": torch.optim.lr_scheduler.StepLR,
        "multi_step": torch.optim.lr_scheduler.MultiStepLR,
        "exponential": torch.optim.lr_scheduler.ExponentialLR,
        "reduce_on_plateau": torch.optim.lr_scheduler.ReduceLROnPlateau,
        "cosine": torch.optim.lr_scheduler.CosineAnnealingLR,
        "noam": NoamLR,
}

After Change


from allennlp.common.registrable import Registrable


logger = logging.getLogger(__name__)  // pylint: disable=invalid-name


class LearningRateScheduler(Registrable):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: allenai/allennlp
Commit Name: 301f2d68b100683c04693669c7b1157fd8a16d6b
Time: 2018-08-22
Author: epwalsh10@gmail.com
File Name: allennlp/training/learning_rate_schedulers.py
Class Name:
Method Name:


Project Name: allenai/allennlp
Commit Name: e3c54d2cc75da8c027629eca44b393e0ce895314
Time: 2018-02-05
Author: matt-peters@users.noreply.github.com
File Name: allennlp/training/optimizers.py
Class Name:
Method Name:


Project Name: analysiscenter/batchflow
Commit Name: 1eef041ef8d9d7d39abbb10c622bcc19f46e63db
Time: 2019-08-19
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/tf/layers/conv_block.py
Class Name:
Method Name: