tensorflow / tensorflow/probability
Supply list of kernels to tfp.mcmc.sample_chain
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 4.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Sometime when sampling from complex models, it would be handy to provide a list of kernels to tfp.mcmc.sample_chain instead of just one. As a simple example, suppose I have a joint probability distribution, with density function $\pi(\theta, \phi, \psi)$ where $-\infty < \theta, \phi < \infty$ and $\psi \in {-1, 0, 1}$. Here, I might need two kernels: an HMC for $\theta, \phi$ and a Metropolis Hastings for $\psi$.
Could we have a feature for composing such updates, as currently it is not obvious how to achieve this?
Thanks,
Chris
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at tfp.mcmc.sample_chain and review how it currently accepts and applies a single kernel. Define how a list of kernels should be composed for the joint distribution example, and consider how completion would be demonstrated for HMC and Metropolis-Hastings updates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- tensorflow
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100