I noticed this syntax in the DynamicHMCExamples package.
function (problem::LogisticRegression)(θ) @unpack y, X, σ = problem @unpack β = θ loglik = sum(logpdf.(Bernoulli.(logistic.(X*β)), y)) logpri = sum(logpdf.(Ref(Normal(0, σ)), β)) loglik + logpri end
Please can someone explain what this does - I haven’t found any instances of this form of declaration elsewhere.