49222e2c9fa43dc101efb72ab71c94fe94e41089,tensorforce/tests/test_dqfd_agent.py,TestDQFDAgent,test_dqfd_agent,#TestDQFDAgent#,34

Before Change


        // First: add to demo memory
        for n in xrange(50):
            action = agent.get_action(state=state)
            if action == 0:
                state = (1, 0)
                reward = 0.0
                terminal = False
            else:
                state = (0, 1)
                reward = 1.0
                terminal = False
            agent.add_demo_observation(state=state, action=action, reward=reward, terminal=terminal)

        // Pre-train from demo data
        agent.pre_train(10000)

After Change


        agent = DQFDAgent(config=config, network_builder=network_builder)

        // First: generate some data to add to demo memory
        state = environment.reset()
        agent.reset()

        for n in xrange(50):
            action = agent.act(state=state)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: reinforceio/tensorforce
Commit Name: 49222e2c9fa43dc101efb72ab71c94fe94e41089
Time: 2017-05-21
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/tests/test_dqfd_agent.py
Class Name: TestDQFDAgent
Method Name: test_dqfd_agent


Project Name: SheffieldML/GPy
Commit Name: f916717aad0e0b97126327537e0eb397579cfb54
Time: 2014-10-29
Author: ibinbei@gmail.com
File Name: GPy/inference/optimization/stochastics.py
Class Name: SparseGPStochastics
Method Name: __init__


Project Name: anttttti/Wordbatch
Commit Name: 01012a68134f36742d76e615005361e6eb55980a
Time: 2019-06-08
Author: antti.puurula@yahoo.com
File Name: wordbatch/batcher.py
Class Name: Batcher
Method Name: __init__


Project Name: chuyangliu/snake
Commit Name: 147e5f98e8b56cd6bcb49770405272c25d228593
Time: 2017-12-07
Author: chuyang.s.liu@gmail.com
File Name: snake/base/map.py
Class Name: Map
Method Name: __init__


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