c0a4a1f18cfb53b0deeb2c003b8e98ebab19fad8,examples/simple_q_agent.py,SimpleQModel,get_action,#SimpleQModel#Any#Any#,79
Before Change
// such as epsilon greedy.
epsilon = self.exploration(episode, self.total_states) // returns a float
if self.random.random_sample() < epsilon:
action = self.random.randint(0, self.action_count)
else:
action = self.session.run(self.q_action, {
self.state: [state]
})[0]
self.total_states += 1
return action
def update(self, batch):
After Change
action = self.session.run(self.q_action, {
self.state["state"]: [state["state"]]
})
return dict(action=action[0]), internals
def update(self, batch):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: reinforceio/tensorforce
Commit Name: c0a4a1f18cfb53b0deeb2c003b8e98ebab19fad8
Time: 2017-05-29
Author: fricke@elbsilber.de
File Name: examples/simple_q_agent.py
Class Name: SimpleQModel
Method Name: get_action
Project Name: mathics/Mathics
Commit Name: f592ce49086098fe835de68a7ee7bf49967b14ad
Time: 2016-08-22
Author: Bernhard.Liebl@gmx.org
File Name: mathics/algorithm/clusters.py
Class Name:
Method Name: _shuffled_range
Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: a4c50016dbacad71dae9ee0399fd26b921842678
Time: 2018-08-09
Author: Andrew.Rowley@manchester.ac.uk
File Name: spynnaker/pyNN/models/spike_source/spike_source_poisson.py
Class Name: SpikeSourcePoisson
Method Name: seed
Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: a4c50016dbacad71dae9ee0399fd26b921842678
Time: 2018-08-09
Author: Andrew.Rowley@manchester.ac.uk
File Name: spynnaker/pyNN/models/spike_source/spike_source_poisson.py
Class Name: SpikeSourcePoisson
Method Name: __init__