88caabc1afc64121fa68b91e9b6c6515d566c8ec,examples/lab_main.py,,main,#,38
Before Change
config.read_json(path + args.network_config)
if args.agent_config:
config.read_json(path + args.agent_config)
logger.setLevel(log_levels[config.get("loglevel", "info")])
preprocessing_config = config.get("preprocessing")
After Change
logger = logging.getLogger(__name__)
logger.setLevel(log_levels[agent_config["loglevel"]])
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)
if args.load:
load_dir = os.path.dirname(args.load)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: bokeh/bokeh
Commit Name: f1bc5b054e29f6d8e948fe7222936a2b0a975535
Time: 2019-10-07
Author: mattpap@gmail.com
File Name: bokeh/util/compiler.py
Class Name:
Method Name: _bundle_models
Project Name: dpressel/mead-baseline
Commit Name: 57591a23e73d3b2ca8132589e68c8a480f1686f5
Time: 2020-04-28
Author: dpressel@gmail.com
File Name: baseline/tf/lm/model.py
Class Name: LanguageModelBase
Method Name: load