Planning the 2.36 release

This is great, thank you!

I tried the release candidate and noticed several of my models failing with the error message “The jacobian adjustment can only be applied in the transformed parameters block or in functions ending with _jacobian” which looks like it arises in stanc3 here. Are there migration notes available?

Here’s an example from the Gaussian process inference library we’ve been working on.

ValueError: Failed to get source info for Stan model '/home/runner/work/gptools/gptools/stan/docs/logistic_regression/logistic_regression.stan'. Console:
Semantic error in '/home/runner/work/gptools/gptools/stan/gptools/stan/gptools/fft1.stan', line 97, column 32, included from
'/home/runner/work/gptools/gptools/stan/docs/logistic_regression/logistic_regression.stan', line 3, column 4:
   -------------------------------------------------
    95:      int nrfft = n %/% 2 + 1;
    96:      vector[n] z = gp_rfft(y, loc, cov_rfft);
    97:      return std_normal_lpdf(z) + gp_rfft_log_abs_det_jacobian(cov_rfft, n);
                                         ^
    98:  }
    99:  
   -------------------------------------------------

The jacobian adjustment can only be applied in the transformed parameters block or in functions ending with _jacobian

The GitHub Action run is here, the model is here, and the offending line is here.

2 Likes