de6ca4b8640d5be2acdfc326a8ce83917084ea5d,async_knowledge_transfer.py,,main,#,240

Before Change


        envs = make_CartPole_envs(generate_random_CartPole_envs(args.random_envs))
    else:
        raise WrongArgumentsException("Please supply an environments file or a number of random environments.")
    if any(map(lambda env: env.name != "CartPole-v0", envs)):
        raise NotImplementedError("Only the environment \"CartPole-v0\" is supported right now.")
    if isinstance(envs[0].action_space, Discrete):
        agent = AsyncKnowledgeTransferLearner(
            envs,
            args.learning_method,

After Change


    elif args.environments:
        envs = make_environments(json_to_dict(args.environments))
    elif args.random_envs:
        if args.env_name is None:
            raise WrongArgumentsException("A name of the environment type for which to generate random instances must be provided.")
        envs = make_random_environments(args.env_name, args.random_envs)
    else:
        raise WrongArgumentsException("Please supply an environments file or a number of random environments.")
    if isinstance(envs[0].action_space, Discrete):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: arnomoonens/yarll
Commit Name: de6ca4b8640d5be2acdfc326a8ce83917084ea5d
Time: 2017-03-25
Author: x-006@hotmail.com
File Name: async_knowledge_transfer.py
Class Name:
Method Name: main


Project Name: arnomoonens/yarll
Commit Name: d954aced6f3684158d132cf14624c582aa03ecea
Time: 2017-03-22
Author: x-006@hotmail.com
File Name: knowledge_transfer.py
Class Name:
Method Name: main


Project Name: arnomoonens/yarll
Commit Name: d954aced6f3684158d132cf14624c582aa03ecea
Time: 2017-03-22
Author: x-006@hotmail.com
File Name: async_knowledge_transfer.py
Class Name:
Method Name: main


Project Name: arnomoonens/yarll
Commit Name: de6ca4b8640d5be2acdfc326a8ce83917084ea5d
Time: 2017-03-25
Author: x-006@hotmail.com
File Name: knowledge_transfer.py
Class Name:
Method Name: main