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

datamodel deactivation #191

Open
rcabanasdepaz opened this issue Sep 20, 2019 · 0 comments
Open

datamodel deactivation #191

rcabanasdepaz opened this issue Sep 20, 2019 · 0 comments

Comments

@rcabanasdepaz
Copy link
Member

Define a way of deactivating the effects of the "datamodel" in a RVs which is built
inside the context of a datamodel. This might be the case of RVs
defined inside a Bayesian NN (probabilistic weights or activations). Take for instance
the following code where weights are created when decoder is invoked.

@inf.probmodel
def vae(k, d0, d, decoder):
    with inf.datamodel():
        z = inf.Normal(tf.ones(k), 1,name="z")
        x = inf.Normal(decoder(z, d0, d), 1, name="x")

This might also have some effects on the dependencies graph: we might find the case that
a RV is "deactivated" but it has a parent and a children inside the datamodel. This might be the case of activations.

It might be interesting as well to add deactivation flag in the RV constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants