Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How are gradients for weights and biases calculated for individual layers? #8

Closed
zgrkpnr opened this issue Jul 11, 2016 · 0 comments
Closed

Comments

@zgrkpnr
Copy link

zgrkpnr commented Jul 11, 2016

Hi. I am lost after the following part.

let func = fun w x -> 
                    l.Decode w
                    l.Run x
        let w0 = l.Encode()
        let w, loss, _, lhist = Optimize.Train(func, w0, dataset, valid, par)

We send func to be optimized w.r.t dataset. But, Optimize.Train method have no idea about individual layers for FeedForward network.

In Optimize module I guess the whole network is flattened to be a single logistic regression function, hence the vector form of weights (probably I am wrong). Finally, where do biases get updated?

Not: I am deeply sorry that I ask these questions on issues board but the only person who can answer these question is the person who wrote the library. I have been trying to write Contrastive Divergence algorithm, but stuck in this particular part of Hype.

@zgrkpnr zgrkpnr closed this as completed Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant