35999e65a83c8b9f67b833623a5b9ce47af7cc71,luminoth/utils/training.py,,get_learning_rate,#Any#Any#,16

Before Change


    method = train_config.learning_rate_decay_method

    if not method or method == "none":
        return train_config.initial_learning_rate

    if method not in LEARNING_RATE_DECAY_METHODS:
        raise ValueError("Invalid learning_rate method "{}"".format(method))

After Change


    Raises:
        ValueError: When the method used is not available.
    
    lr_config = train_config.learning_rate.copy()
    decay_method = lr_config.pop("decay_method", None)

    if not decay_method or decay_method == "none":
        return lr_config.get("value") or lr_config.get("learning_rate")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tryolabs/luminoth
Commit Name: 35999e65a83c8b9f67b833623a5b9ce47af7cc71
Time: 2017-09-19
Author: javirey@gmail.com
File Name: luminoth/utils/training.py
Class Name:
Method Name: get_learning_rate


Project Name: tryolabs/luminoth
Commit Name: 35999e65a83c8b9f67b833623a5b9ce47af7cc71
Time: 2017-09-19
Author: javirey@gmail.com
File Name: luminoth/utils/training.py
Class Name:
Method Name: get_optimizer


Project Name: deepmind/sonnet
Commit Name: a27371fc0adda5eb53ff5a29bf83d963f7e52096
Time: 2017-09-25
Author: noreply@google.com
File Name: sonnet/python/modules/gated_rnn.py
Class Name: BatchNormLSTM
Method Name: get_possible_initializer_keys