Skip to content

Keyword arugments in @model are not treated as data #911

@xukai92

Description

@xukai92

In the MEW below, x_inf is not treated as data.

using Turing

@model mwe(x0=1.0) = begin
    m ~ Normal(0, 1)
    x0 ~ Normal(m, 1)
end

sample(mwe(), HMC(0.1, 2), 100)

However, this works

sample(mwe(1.0), HMC(0.1, 2), 100)

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