641a28fbf0daff0ad1ad0f43d2c4b545cb6f9656,examples/reinforcement_learning/tutorial_frozenlake_dqn.py,,get_model,#,58

Before Change


def get_model(inputs_shape):
    ni = tl.layers.Input(inputs_shape, name="observation")
    nn = tl.layers.Dense(4, act=None, W_init=tf.random_uniform_initializer(0, 0.01), b_init=None, name="q_a_s")(ni)
    M = tl.models.Model(inputs=ni, outputs=nn, name="Q-Network")
    return M
qnetwork = get_model([1, 16])
qnetwork.train()
train_weights = qnetwork.weights

After Change


def get_model(inputs_shape):
    ni = tl.layers.Input(inputs_shape, name="observation")
    nn = tl.layers.Dense(4, act=None, W_init=tf.random_uniform_initializer(0, 0.01), b_init=None, name="q_a_s")(ni)
    return tl.models.Model(inputs=ni, outputs=nn, name="Q-Network")
qnetwork = get_model([1, 16])
qnetwork.train()
train_weights = qnetwork.weights
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 641a28fbf0daff0ad1ad0f43d2c4b545cb6f9656
Time: 2019-02-16
Author: dhsig552@163.com
File Name: examples/reinforcement_learning/tutorial_frozenlake_dqn.py
Class Name:
Method Name: get_model


Project Name: tensorlayer/tensorlayer
Commit Name: 641a28fbf0daff0ad1ad0f43d2c4b545cb6f9656
Time: 2019-02-16
Author: dhsig552@163.com
File Name: examples/basic_tutorials/1_mnist_mlp_eager_mode_model2layer.py
Class Name:
Method Name: get_model


Project Name: keras-team/autokeras
Commit Name: 9a387157f03916b2f4f9f63647792dca39942471
Time: 2018-03-29
Author: jin@tamu.edu
File Name: autokeras/generator.py
Class Name: DefaultClassifierGenerator
Method Name: generate