Mercurial > pylearn
comparison statscollector.py @ 326:fe57b96f33d4
made ExampleWiseMean Op
author | Olivier Breuleux <breuleuo@iro.umontreal.ca> |
---|---|
date | Fri, 13 Jun 2008 15:26:35 -0400 |
parents | 50a8302addaf |
children | 4efb503fd0da |
comparison
equal
deleted
inserted
replaced
325:7a734dba4cac | 326:fe57b96f33d4 |
---|---|
1 | 1 |
2 # Here is how I see stats collectors: | 2 # Here is how I see stats collectors: |
3 | 3 |
4 # def my_stats((residue,nll),(regularizer)): | 4 # def my_stats((residue,nll),(regularizer)): |
5 # mse=examplewise_mean(square_norm(residue)) | 5 # mse=examplewise_mean(square_norm(residue)) |
6 # training_loss=regularizer+examplewise_sum(nll) | 6 # training_loss=regularizer+examplewise_sum(nll) |
7 # set_names(locals()) | 7 # set_names(locals()) |
8 # return ((residue,nll),(regularizer),(),(mse,training_loss)) | 8 # return ((residue,nll),(regularizer),(),(mse,training_loss)) |
9 # my_stats_collector = make_stats_collector(my_stats) | 9 # my_stats_collector = make_stats_collector(my_stats) |
10 # | 10 # |
11 # where make_stats_collector calls my_stats(examplewise_fields, attributes) to | 11 # where make_stats_collector calls my_stats(examplewise_fields, attributes) to |