7dcda01b219a056b6932096648ad6a53f164811b,samples/dqn_tweaks_doom.py,,,#,62

Before Change



    action_selector = ActionSelectorEpsilonGreedy(epsilon=run.getfloat("defaults", "epsilon"), params=params)
    target_net = agent.TargetNet(model)
    dqn_agent = agent.DQNAgent(dqn_model=target_net.target_model, action_selector=action_selector)
    exp_source = experience.ExperienceSource(env=env_pool, agent=dqn_agent, steps_count=run.getint("defaults", "n_steps"))
    exp_replay = experience.ExperienceReplayBuffer(exp_source, buffer_size=run.getint("exp_buffer", "size"))

    def batch_to_train(batch):

After Change



    action_selector = ActionSelectorEpsilonGreedy(epsilon=run.getfloat("defaults", "epsilon"), params=params)
    target_net = agent.TargetNet(model)
    dqn_agent = agent.DQNAgent(dqn_model=model, action_selector=action_selector)
    exp_source = experience.ExperienceSource(env=env_pool, agent=dqn_agent, steps_count=run.getint("defaults", "n_steps"))
    exp_replay = experience.ExperienceReplayBuffer(exp_source, buffer_size=run.getint("exp_buffer", "size"))

    if run.getboolean("dqn", "target_dqn", fallback=False):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Shmuma/ptan
Commit Name: 7dcda01b219a056b6932096648ad6a53f164811b
Time: 2017-05-09
Author: max.lapan@gmail.com
File Name: samples/dqn_tweaks_doom.py
Class Name:
Method Name:


Project Name: reinforceio/tensorforce
Commit Name: d10e1736bef8954722d0d19631fe42f6b83e8ce6
Time: 2017-11-11
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/tests/test_tutorial_code.py
Class Name: TestTutorialCode
Method Name: test_blogpost_introduction


Project Name: reinforceio/tensorforce
Commit Name: e46c1ded997580101e5a5dd3ef0e6501e82f59af
Time: 2017-10-16
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/tests/test_tutorial_code.py
Class Name: TestTutorialCode
Method Name: test_blogpost_introduction_runner