41024c61c0737b1beaea8fff8e00a947d6b6ee9b,knowledge_transfer.py,,main,#,123

Before Change


    if isinstance(env.action_space, Discrete):
        action_selection = ProbabilisticCategoricalActionSelection()
        agent = KnowledgeTransferLearner(env, action_selection, args.monitor_path)
    elif isinstance(env.action_space, Box):
        raise NotImplementedError
    else:
        raise NotImplementedError
    try:
        env.monitor.start(args.monitor_path, force=True)

After Change


        action_selection = ProbabilisticCategoricalActionSelection()
        agent = KnowledgeTransferLearner(envs, action_selection, args.monitor_path)
    else:
        raise NotImplementedError("Only environments with a discrete action space are supported right now.")
    try:
        // env.monitor.start(args.monitor_path, force=True)
        agent.learn()
    except KeyboardInterrupt:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: arnomoonens/yarll
Commit Name: 41024c61c0737b1beaea8fff8e00a947d6b6ee9b
Time: 2017-02-09
Author: x-006@hotmail.com
File Name: knowledge_transfer.py
Class Name:
Method Name: main


Project Name: commonsense/conceptnet5
Commit Name: edb289f50be23703d38406081423fe7116067e0a
Time: 2015-07-17
Author: rob@luminoso.com
File Name: conceptnet5/uri.py
Class Name:
Method Name: standardize_text


Project Name: scipy/scipy
Commit Name: 45d980c8d1adf474bdf0872a98e761136acde314
Time: 2015-02-08
Author: mclee@aftercollege.com
File Name: scipy/sparse/data.py
Class Name: _data_matrix
Method Name: power