You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylea...@googlegroups.com
Hi,
Another quick question: is there already a way to check the numerical values of the gradients during training (using SGD, to check that my cost is doing the right thing), or what would be the non-hacky way to implement this?
Cheers, David
Ian Goodfellow
unread,
May 15, 2013, 4:28:40 PM5/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylearn-dev
I think theano.gradient.verify_grad does what you want. There's
another version, theano.tests.unittest_tools.verify_grad. I always
forget how they differ from each other.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "pylearn-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pylearn-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
David Reichert
unread,
May 15, 2013, 4:43:36 PM5/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylea...@googlegroups.com
Hm I think I should have been clearer: in my case I don't actually need to verify that the gradients are correctly derived from a cost, rather I need to check that two gradients computed for two different parameters are the same numerically (a special case for my cost, just to check that my code is the doing right thing). So details aside, the point is that I need to read out the actual numerical values of the gradients and then do something with them (something that isn't verifying the gradient in the sense of verify_grad as far as I can see)...
Ian Goodfellow
unread,
May 15, 2013, 4:45:17 PM5/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message