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

Method createFromArrays

unsupervised_class2/rbm.py:111–118  ·  view source on GitHub ↗
(W, c, b, an_id)

Source from the content-addressed store, hash-verified

109
110 @staticmethod
111 def createFromArrays(W, c, b, an_id):
112 rbm = AutoEncoder(W.shape[1], an_id)
113 rbm.W = theano.shared(W, 'W_%s' % rbm.id)
114 rbm.c = theano.shared(c, 'c_%s' % rbm.id)
115 rbm.b = theano.shared(b, 'b_%s' % rbm.id)
116 rbm.params = [rbm.W, rbm.c, rbm.b]
117 rbm.forward_params = [rbm.W, rbm.c]
118 return rbm
119
120
121def main():

Callers 1

loadMethod · 0.45

Calls 1

AutoEncoderClass · 0.70

Tested by

no test coverage detected