9128a4b20336fb8c07fc4e0e0985fe299d1a5f12,tensorforce/core/agent.py,Agent,__init__,#Agent#Any#Any#,41
Before Change
// exploration
self.exploration = dict()
for name, action in self.action_config.items():
exploration = action.get("exploration", None)
args = action.get("exploration_args", ())
kwargs = action.get("exploration_kwargs", {})
if exploration is None:
self.exploration[name] = None
elif exploration in explorations:
self.exploration[name] = explorations[exploration](*args, **kwargs)
else:
self.exploration[name] = module(exploration)(*args, **kwargs)
self.episodes = 0
After Change
// exploration
self.exploration = dict()
for name, action in config.actions:
if "exploration" not in action:
self.exploration[name] = None
continue
exploration = action.exploration
args = action.exploration_args
kwargs = action.exploration_kwargs
self.exploration[name] = util.function(exploration, explorations)(*args, **kwargs)
self.episode = 0
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: reinforceio/tensorforce
Commit Name: 9128a4b20336fb8c07fc4e0e0985fe299d1a5f12
Time: 2017-05-20
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/core/agent.py
Class Name: Agent
Method Name: __init__
Project Name: snipsco/snips-nlu
Commit Name: 7c50d9677032e4ea15c5c5ca5c96a85994aa39a4
Time: 2018-02-15
Author: clement.doumouro@gmail.com
File Name: nlu_dataset/assistant_dataset.py
Class Name: AssistantDataset
Method Name: json
Project Name: facebookresearch/Horizon
Commit Name: 9cf8f6cdf6a2008843cb37da6e34b8d10353b0bf
Time: 2019-12-12
Author: kittipat@fb.com
File Name: ml/rl/preprocessing/sparse_to_dense.py
Class Name: PythonSparseToDenseProcessor
Method Name: process