88caabc1afc64121fa68b91e9b6c6515d566c8ec,examples/lab_main.py,,main,#,38
Before Change
env = DeepMindLab(args.level_id)
config = Configuration({
"repeat_actions": 1,
"actions": env.actions,
"action_shape": env.action_shape,
"state_shape": env.state_shape,
"max_episode_length": args.max_timesteps
})
// This is necessary to give bazel the correct path
path = os.path.dirname(__file__)
if args.network_config:
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")
// if preprocessing_config:
// stack = build_preprocessing_stack(preprocessing_config)
// config.state_shape = stack.shape(config.state_shape)
// else:
After Change
environment = DeepMindLab(args.level_id)
if args.agent_config:
agent_config = Configuration.from_json(args.agent_config)
else:
raise TensorForceError("No agent configuration provided.")
if not args.network_config:
raise TensorForceError("No network configuration provided.")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: tensorflow/datasets
Commit Name: 83218b7cb41cbcd3b4800313ecd8fe33b846205a
Time: 2020-08-07
Author: cs17btech11040@iith.ac.in
File Name: tensorflow_datasets/core/features/sequence_feature.py
Class Name: Sequence
Method Name: from_json_content
Project Name: tensorflow/datasets
Commit Name: 83218b7cb41cbcd3b4800313ecd8fe33b846205a
Time: 2020-08-07
Author: cs17btech11040@iith.ac.in
File Name: tensorflow_datasets/core/features/features_dict.py
Class Name: FeaturesDict
Method Name: from_json_content