Skip to content

Annotation comment #55

@spinkney

Description

@spinkney

If we had annotations described in design doc 33 I believe it is a nice solution to allowing users to pick a parameterization of a constraint (if we had it). For example, we can have multiple cholesky factor corr parameterizations with the default that we find to work best in most cases. However a user could select a different one from the default (again, assuming we have it written in Stan-math) as

model {
 cholesky_factor_corr[N] L; // use default no annotation necessary
 @param(stick_breaking) cholesky_factor_corr[N] L2; // this annotation tells the compiler to use the stick breaking parameterization that Stan currently uses 
}

@WardBrian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions