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

Method copy

rl2/mountaincar/pg_tf_random.py:144–149  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

142 return p
143
144 def copy(self):
145 clone = PolicyModel(self.ft, self.D, self.hidden_layer_sizes_mean, self.hidden_layer_sizes_mean)
146 clone.set_session(self.session)
147 clone.init_vars() # tf will complain if we don't do this
148 clone.copy_from(self)
149 return clone
150
151 def copy_from(self, other):
152 # collect all the ops

Callers 14

runMethod · 0.45
stepMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
rmsprop_test.pyFile · 0.45
neural_network2.pyFile · 0.45
gmmFunction · 0.45
random_searchFunction · 0.45
autorec.pyFile · 0.45

Calls 4

set_sessionMethod · 0.95
init_varsMethod · 0.95
copy_fromMethod · 0.95
PolicyModelClass · 0.70

Tested by

no test coverage detected