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

Method __init__

unsupervised_class2/xwing.py:25–32  ·  view source on GitHub ↗
(self, m1, m2)

Source from the content-addressed store, hash-verified

23
24class Layer(object):
25 def __init__(self, m1, m2):
26 W = init_weights((m1, m2))
27 bi = np.zeros(m2, dtype=np.float32)
28 bo = np.zeros(m1, dtype=np.float32)
29 self.W = theano.shared(W)
30 self.bi = theano.shared(bi)
31 self.bo = theano.shared(bo)
32 self.params = [self.W, self.bi, self.bo]
33
34 def forward(self, X):
35 return T.nnet.sigmoid(X.dot(self.W) + self.bi)

Callers

nothing calls this directly

Calls 1

init_weightsFunction · 0.90

Tested by

no test coverage detected