Skip to content

Way to Declare Data #1736

@ParadaCarleton

Description

@ParadaCarleton

Mentioned on the call today with Hong and Cameron -- perhaps we should add a wrapper type for data that throws an error if any variable is sampled from a distribution instead of being added to the log-likelihood. (Possibly exempting missing values.) Cameron suggested an @data convenience macro where users can list all their data variables and have them automatically converted by Turing.

This could avoid some of the errors we've been seeing on Discourse where users accidentally generate a sample instead of adding it to the log-likelihood.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions