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

Method get_params

rl3/es_mnist.py:77–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 return np.mean(Y == P)
76
77 def get_params(self):
78 # return a flat array of parameters
79 return np.concatenate([self.W1.flatten(), self.b1, self.W2.flatten(), self.b2])
80
81 def set_params(self, params):
82 # params is a flat list

Callers 1

es_mnist.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected