In some use cases, the users may want to switch between discrete sampling and continuous sampling.
There are two parts to this problem:
- Let the user defining an objective function that support both continuous and discrete variables.
- Sample the variables.
The second step can be done with some thing like
https://num.pyro.ai/en/latest/_modules/numpyro/infer/hmc_gibbs.html#DiscreteHMCGibbs
In some use cases, the users may want to switch between discrete sampling and continuous sampling.
There are two parts to this problem:
The second step can be done with some thing like
https://num.pyro.ai/en/latest/_modules/numpyro/infer/hmc_gibbs.html#DiscreteHMCGibbs