(self)
| 114 | layer.initializer(self.layers[i-1].units) |
| 115 | |
| 116 | def summary(self): |
| 117 | for i,layer in enumerate(self.layers[:]): |
| 118 | print('------- layer %d -------'%i) |
| 119 | print('weight.shape ',np.shape(layer.weight)) |
| 120 | print('bias.shape ',np.shape(layer.bias)) |
| 121 | |
| 122 | def train(self,xdata,ydata,train_round,accuracy): |
| 123 | self.train_round = train_round |