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

Trans-MCMC for joint space across different models #2

Open
hyunjimoon opened this issue Aug 12, 2021 · 1 comment
Open

Trans-MCMC for joint space across different models #2

hyunjimoon opened this issue Aug 12, 2021 · 1 comment

Comments

@hyunjimoon
Copy link
Collaborator

Problem: Parameters in model1 do not appear in model2. Exploration happens on joint space of every parameters within the model network.

Suggestion: use transformed parameters block to conditioned parameters as below
From

data {
  int N;
  vector[N] y;
}
parameters {
  real<lower=0> sigma;
}
...

To

data {
  int N;
  vector[N] y;
}
parameters {
  real<lower=0> sigma;
  real<lower=0> mu;
}
transformed parameters{
  real<lower=0> mu;
  mu = 0
}
model {
  sigma ~ lognormal(0, 1);
  y ~ normal(mu, sigma);
}
@rybern
Copy link
Owner

rybern commented Aug 13, 2021

I can see the argument for this, but I think I'd rather we try to handle the different parameter sets in the wrappers rather than in the core algorithm itself. Do you think that'll be doable?

To me, the issue would be that when any model in the network adds a parameter, all of the models (or I suppose only programs) in the network are affected. That's a sort of unexpected non-local effect to me; I would expected a small change to have a small effect. I think adding parameters may also impact sampling.

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