Mercurial > pylearn
comparison algorithms/_test_logistic_regression.py @ 503:c7ce66b4e8f4
Extensions to algorithms, and some cleanup (by defining linear_output result).
author | Joseph Turian <turian@gmail.com> |
---|---|
date | Wed, 29 Oct 2008 03:29:18 -0400 |
parents | bd937e845bbb |
children |
comparison
equal
deleted
inserted
replaced
502:17945defd813 | 503:c7ce66b4e8f4 |
---|---|
1 from logistic_regression import * | 1 from logistic_regression import * |
2 import sys, time | 2 import sys, time |
3 | 3 |
4 if __name__ == '__main__': | 4 if __name__ == '__main__': |
5 pprint.assign(nnet_ops.crossentropy_softmax_1hot_with_bias_dx, printing.FunctionPrinter('xsoftmaxdx')) | 5 pprint.assign(nnet.crossentropy_softmax_1hot_with_bias_dx, printing.FunctionPrinter('xsoftmaxdx')) |
6 pprint.assign(nnet_ops.crossentropy_softmax_argmax_1hot_with_bias, printing.FunctionPrinter('nll', 'softmax', 'argmax')) | 6 pprint.assign(nnet.crossentropy_softmax_argmax_1hot_with_bias, printing.FunctionPrinter('nll', 'softmax', 'argmax')) |
7 if 1: | 7 if 1: |
8 lrc = Module_Nclass() | 8 lrc = Module_Nclass() |
9 | 9 |
10 print '================' | 10 print '================' |
11 print lrc.update.pretty() | 11 print lrc.update.pretty() |