641a28fbf0daff0ad1ad0f43d2c4b545cb6f9656,examples/reinforcement_learning/tutorial_cartpole_ac.py,,,#,148

Before Change



for i_episode in range(MAX_EPISODE):
    episode_time = time.time()
    s = env.reset()
    t = 0  // number of step in this episode
    all_r = []  // rewards of all steps
    while True:
        if RENDER: env.render()

After Change



for i_episode in range(MAX_EPISODE):
    episode_time = time.time()
    s = env.reset().astype(np.float32)
    t = 0  // number of step in this episode
    all_r = []  // rewards of all steps
    while True:
        if RENDER: env.render()
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_cartpole_ac.py
Class Name:
Method Name: