MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / reset

Method reset

rl2/cartpole/td_lambda.py:54–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 self.eligibilities = np.zeros((env.action_space.n, D))
53
54 def reset(self):
55 self.eligibilities = np.zeros_like(self.eligibilities)
56
57 def predict(self, s):
58 X = self.feature_transformer.transform([s])

Callers 15

gym_tutorial.pyFile · 0.45
play_oneFunction · 0.45
dqn_tf.pyFile · 0.45
play_oneFunction · 0.45
dqn_theano.pyFile · 0.45
play_oneFunction · 0.45
play_oneFunction · 0.45
__init__Method · 0.45
play_oneFunction · 0.45
play_one_tdFunction · 0.45
play_one_tdFunction · 0.45
play_oneFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected