MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / get_value_prediction

Method get_value_prediction

rl2/a3c/worker.py:178–183  ·  view source on GitHub ↗
(self, state, sess)

Source from the content-addressed store, hash-verified

176 return actions[0]
177
178 def get_value_prediction(self, state, sess):
179 # Make input N x D (N = 1)
180 feed_dict = { self.value_net.states: [state] }
181 vhat = sess.run(self.value_net.vhat, feed_dict)
182 # Prediction is a 1-D array of length N, just want the first value
183 return vhat[0]
184
185 def run_n_steps(self, n, sess):
186 steps = []

Callers 1

updateMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected