(self, X)
| 217 | return T.argmax(self.forward(X), axis=1) |
| 218 | |
| 219 | def forward(self, X): |
| 220 | current_input = X |
| 221 | for ae in self.hidden_layers: |
| 222 | Z = ae.forward_hidden(current_input) |
| 223 | current_input = Z |
| 224 | |
| 225 | # logistic layer |
| 226 | Y = T.nnet.softmax(T.dot(current_input, self.W) + self.b) |
| 227 | return Y |
| 228 | |
| 229 | |
| 230 | def main(): |
no test coverage detected