Mercurial > pylearn
comparison cost.py @ 496:f13847478c6d
A few more ideas, in comments
author | Joseph Turian <turian@gmail.com> |
---|---|
date | Tue, 28 Oct 2008 12:09:49 -0400 |
parents | 94a4c5b7293b |
children |
comparison
equal
deleted
inserted
replaced
495:7560817a07e8 | 496:f13847478c6d |
---|---|
1 """ | 1 """ |
2 Cost functions. | 2 Cost functions. |
3 | 3 |
4 @note: All of these functions return one cost per example. So it is your | 4 @note: All of these functions return one cost per example. So it is your |
5 job to perform a tensor.sum over the individual example losses. | 5 job to perform a tensor.sum over the individual example losses. |
6 | |
7 @todo: Make a Cost class, with a particular contract. | |
6 | 8 |
7 @todo: It would be nice to implement a hinge loss, with a particular margin. | 9 @todo: It would be nice to implement a hinge loss, with a particular margin. |
8 """ | 10 """ |
9 | 11 |
10 import theano.tensor as T | 12 import theano.tensor as T |