f37830bbe2c85f613fded1721976dbe94f6bed0b,gym/utils/play.py,,play,#,24

Before Change


        if obs is not None:
            if len(obs.shape) == 2:
                obs = obs[:, :, None]
            if obs.shape[2] == 1:
                obs = obs.repeat(3, axis=2)
            display_arr(screen, obs, transpose=transpose, video_size=video_size)

        // process pygame events
        for event in pygame.event.get():

After Change


            if callback is not None:
                callback(prev_obs, obs, action, rew, env_done, info)
        if obs is not None:
            rendered=env.render( mode="rgb_array")
            display_arr(screen, rendered, transpose=transpose, video_size=video_size)

        // process pygame events
        for event in pygame.event.get():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: openai/gym
Commit Name: f37830bbe2c85f613fded1721976dbe94f6bed0b
Time: 2019-03-22
Author: martin.delagorce@gmail.com
File Name: gym/utils/play.py
Class Name:
Method Name: play


Project Name: lcswillems/torch-rl
Commit Name: 68ec284dd57ba00230c6c6199cbb71d53e0696fc
Time: 2019-12-25
Author: maximechevalierb@gmail.com
File Name: scripts/visualize.py
Class Name:
Method Name:


Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 296fbaab0845e1e1c25ff1f64ab7a0583e9c4cbc
Time: 2018-09-12
Author: takaesu235@gmail.com
File Name: Generator/gan_main.py
Class Name: GAN
Method Name: train