a392d4aaddd01d271ab150a7e1ceaadd1c382cf9,A3C.py,,main,#,274

Before Change


            job.join()

def main():
    if(len(sys.argv) < 3):
        logging.error("Please provide the name of an environment and a path to save monitor files")
        return
    env = gym.make(sys.argv[1])
    if isinstance(env.action_space, Discrete):
        agent = A3CLearner(env, ProbabilisticCategoricalActionSelection(), sys.argv[2])
    elif isinstance(env.action_space, Box):

After Change


parser.add_argument("monitor_path", metavar="monitor_path", type=str, help="Path where Gym monitor files may be saved")

def main():
    try:
        args = parser.parse_args()
    except:
        sys.exit()
    env = gym.make(args.environment)
    if isinstance(env.action_space, Discrete):
        agent = A3CLearner(env, ProbabilisticCategoricalActionSelection(), args.monitor_path, episode_max_length=env.spec.timestep_limit)
    elif isinstance(env.action_space, Box):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: arnomoonens/yarll
Commit Name: a392d4aaddd01d271ab150a7e1ceaadd1c382cf9
Time: 2016-12-05
Author: x-006@hotmail.com
File Name: A3C.py
Class Name:
Method Name: main


Project Name: arnomoonens/yarll
Commit Name: a392d4aaddd01d271ab150a7e1ceaadd1c382cf9
Time: 2016-12-05
Author: x-006@hotmail.com
File Name: A2C.py
Class Name:
Method Name: main


Project Name: home-assistant/home-assistant
Commit Name: 231656916c293e444bc6c062c8cc96e75b1f4f97
Time: 2016-08-04
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/thermostat/heat_control.py
Class Name: HeatControl
Method Name: _update_temp