Mercurial > pylearn
diff statscollector.py @ 345:4efb503fd0da
Added test for dataset/RenamedFieldsDataSet
author | Yoshua Bengio <bengioy@iro.umontreal.ca> |
---|---|
date | Tue, 17 Jun 2008 14:32:54 -0400 |
parents | fe57b96f33d4 |
children |
line wrap: on
line diff
--- a/statscollector.py Mon Jun 16 17:26:51 2008 -0400 +++ b/statscollector.py Tue Jun 17 14:32:54 2008 -0400 @@ -1,7 +1,13 @@ # Here is how I see stats collectors: -# def my_stats((residue,nll),(regularizer)): +def my_stats(graph): + graph.mse=examplewise_mean(square_norm(graph.residue)) + graph.training_loss=graph.regularizer+examplewise_sum(graph.nll) + return [graph.mse,graph.training_loss] + + +# def my_stats(residue,nll,regularizer): # mse=examplewise_mean(square_norm(residue)) # training_loss=regularizer+examplewise_sum(nll) # set_names(locals())