6ca2a6359dc1374bfb211da8680f3d5f319cdaa5,examples/reinforcement_learning/tutorial_bipedalwalker_a3c_continuous_action.py,,,#,254

Before Change




if __name__ == "__main__":
    sess = tf.Session()

    // ============================= TRAINING ===============================
    with tf.device("/cpu:0"):
        OPT_A = tf.train.RMSPropOptimizer(LR_A, name="RMSPropA")
        OPT_C = tf.train.RMSPropOptimizer(LR_C, name="RMSPropC")
        GLOBAL_AC = ACNet(GLOBAL_NET_SCOPE)  // we only need its params
        workers = []
        // Create worker
        for i in range(N_WORKERS):
            i_name = "Worker_%i" % i  // worker name
            workers.append(Worker(i_name, GLOBAL_AC))

    COORD = tf.train.Coordinator()
    sess.run(tf.global_variables_initializer())

    // start TF threading
    worker_threads = []
    for worker in workers:

After Change


            a = GLOBAL_AC.choose_action(s)
            s, r, d, _ = env.step(a)
            rall += r
            if d:
                print("reward", rall)
                break
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 6ca2a6359dc1374bfb211da8680f3d5f319cdaa5
Time: 2019-05-16
Author: 1402434478@qq.com
File Name: examples/reinforcement_learning/tutorial_bipedalwalker_a3c_continuous_action.py
Class Name:
Method Name:


Project Name: tensorlayer/tensorlayer
Commit Name: a6652b0c1997bb47dd502bf674e0b3b9b2d09d23
Time: 2019-05-16
Author: 1402434478@qq.com
File Name: examples/reinforcement_learning/tutorial_bipedalwalker_a3c_continuous_action.py
Class Name:
Method Name:


Project Name: jhfjhfj1/autokeras
Commit Name: f4503bb3a3be014b452f54d8e2d187bb6419f627
Time: 2018-08-01
Author: jhfjhfj1@gmail.com
File Name: autokeras/classifier.py
Class Name: ImageClassifier
Method Name: predict