88caabc1afc64121fa68b91e9b6c6515d566c8ec,examples/lab_main.py,,main,#,38

Before Change


    if args.agent_config:
        config.read_json(path + args.agent_config)

    logger.setLevel(log_levels[config.get("loglevel", "info")])

    preprocessing_config = config.get("preprocessing")
    // if preprocessing_config:

After Change


    preprocessing_config = agent_config["preprocessing"]
    if preprocessing_config:
        preprocessor = build_preprocessing_stack(preprocessing_config)
        agent_config.states["shape"] = preprocessor.shape(agent_config.states["shape"])
    else:
        preprocessor = None

    agent = agents[args.agent](config=agent_config)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: reinforceio/tensorforce
Commit Name: 88caabc1afc64121fa68b91e9b6c6515d566c8ec
Time: 2017-06-11
Author: mi.schaarschmidt@gmail.com
File Name: examples/lab_main.py
Class Name:
Method Name: main


Project Name: dpressel/mead-baseline
Commit Name: 7fa458e2c4c5df5a9d2cc4e66b2472cd9f3377a8
Time: 2018-09-17
Author: dpressel@gmail.com
File Name: python/baseline/tf/tfy.py
Class Name:
Method Name: pool_chars


Project Name: stellargraph/stellargraph
Commit Name: 145170ca9bbd89aa01d8a40841e3c039d3683af8
Time: 2019-06-03
Author: andrew.docherty@data61.csiro.au
File Name: stellargraph/layer/graph_attention.py
Class Name: GAT
Method Name: __call__


Project Name: IndicoDataSolutions/finetune
Commit Name: 6b5813458e9fb1da4a99c2bafc335526955c3dc5
Time: 2020-01-10
Author: benlt@hotmail.co.uk
File Name: finetune/nn/target_blocks.py
Class Name:
Method Name: sequence_labeler