35999e65a83c8b9f67b833623a5b9ce47af7cc71,luminoth/utils/training.py,,get_learning_rate,#Any#Any#,16
Before Change
raise ValueError("Invalid learning_rate method "{}"".format(method))
if method == "piecewise_constant":
learning_rate = tf.train.piecewise_constant(
global_step, boundaries=[
tf.cast(train_config.learning_rate_decay, tf.int64), ],
values=[
train_config.initial_learning_rate,
train_config.initial_learning_rate * 0.1
], name="learning_rate_piecewise_constant"
)
elif method == "exponential_decay":
learning_rate = tf.train.exponential_decay(
learning_rate=train_config.initial_learning_rate,
After Change
lr_config["global_step"] = global_step
// boundaries, when used, must be the same type as global_step (int64).
if "boundaries" in lr_config:
lr_config["boundaries"] = [
tf.cast(b, tf.int64) for b in lr_config["boundaries"]
]
decay_function = LEARNING_RATE_DECAY_METHODS[decay_method]
learning_rate = decay_function(
**lr_config
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name: Layer
Method Name: __init__
Project Name: streamlit/streamlit
Commit Name: c07011a6abea45c0c664920a4550ec31052eb2d7
Time: 2018-06-16
Author: thiagot@gmail.com
File Name: lib/streamlit/DeltaGenerator.py
Class Name: DeltaGenerator
Method Name: deck_gl_map