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

Implement grad(x, ω, ZygoteGrad) #137

Open
zenna opened this issue Jul 15, 2020 · 0 comments
Open

Implement grad(x, ω, ZygoteGrad) #137

zenna opened this issue Jul 15, 2020 · 0 comments
Assignees

Comments

@zenna
Copy link
Owner

zenna commented Jul 15, 2020

Given some real valued random variable, we want to be able to compute the gradients.

Gradients are in the package OmegaGrad, which is not within OmegaCore, so you'll need to dev it

There are many different ways to represent the gradient. These are expressed in the different interfaces in OmegaGrad.jl. The one we'll focus on on first is grad

x = 1 ~ Normal(0, 1)
ω = defω()
x_ = x(ω)
ωgrad = grad(x, ω, ZygoteGrad)

ωgrad should be a ω::AbstractΩ but whose components now reflect the gradient values.

@zenna zenna transferred this issue from zenna/OmegaCore.jl Feb 17, 2021
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

2 participants