Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Accessing params in SVI #1624

Open
zaxtax opened this issue Aug 25, 2022 · 1 comment
Open

Accessing params in SVI #1624

zaxtax opened this issue Aug 25, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@zaxtax
Copy link
Contributor

zaxtax commented Aug 25, 2022

Right now, there isn't a great way to access the params directly associated with a given guide program. Is this a deliberate design choice, or do we want to expose this functionality somehow?

@zaxtax zaxtax added the enhancement New feature or request label Aug 25, 2022
@feynmanliang
Copy link
Contributor

I think this is a good suggestion and it comes up in a few of my use cases. Suppose I have a guide random variable q() for some target p(). As an implementer of a VI algorithm, how can I obtain all the params used in q() so that I can construct an optimizer over them?

There's no convenient or straightforward way ATM IMO. We currently trace them in VariationalInfer's constructor, but maybe there's an alternative we could look at?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants