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

Method get_params_dict

rl3/es_flappy.py:111–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 return np.concatenate([self.W1.flatten(), self.b1, self.W2.flatten(), self.b2])
110
111 def get_params_dict(self):
112 return {
113 'W1': self.W1,
114 'b1': self.b1,
115 'W2': self.W2,
116 'b2': self.b2,
117 }
118
119 def set_params(self, params):
120 # params is a flat list

Callers 1

es_flappy.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected