f8ee76eb82bdffaacde7ab29ba3d8c3669007642,samples/a2c.py,,,#,73

Before Change


    mean_games_bound = run.getint("stop", "mean_games")
    mean_reward_bound = run.getfloat("stop", "mean_reward")

    decimate_params_after_score = run.getint("learning", "decimate_params_after_score", fallback=None)

    try:
        for exp in exp_source:
            batch.append(exp)

After Change


            if rewards and mean_rewards > mean_reward_bound:
                break
            updated_options = run.check_and_reload()
            if updated_options:
                if ("learning", "lr") in updated_options:
                    lr = run.getfloat("learning", "lr")
                    optimizer = optim.RMSprop(model.parameters(), lr=lr)
                    log.info("LR updated to %s", lr)
    finally:
        if args.plot:
            plot_charts(titles=GRAPH_TITLES, data=graph_data, page_name=args.plot)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Shmuma/ptan
Commit Name: f8ee76eb82bdffaacde7ab29ba3d8c3669007642
Time: 2017-06-30
Author: max.lapan@gmail.com
File Name: samples/a2c.py
Class Name:
Method Name:


Project Name: PyMVPA/PyMVPA
Commit Name: 8537f41308b59c274d07a51878df8279de41b1c0
Time: 2012-03-02
Author: debian@onerussian.com
File Name: mvpa2/__init__.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: 56244dcecb11753fc4b07d4042f83f15f1ab0896
Time: 2013-12-19
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/goal/initialize_reporting.py
Class Name:
Method Name: initial_reporting