(W, c, b, an_id)
| 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 | |
| 121 | def main(): |