Skip to content

Replace prob macro with SimpleVarInfo  #356

@yebai

Description

@yebai

See #309 (comment)

IMO this should be removed. Once we have SimpleVarInfo, this is completely redundant.

Similarly we should IMO remove the prob"..." macro, since now it will be possible to add something like

function logdensity(model::Model, theta::NamedTuple)
    return logdensity(model, SimpleVarInfo(theta))
end

It might be safer to depreciate logprob with a suggestion to use logdensity first. Also, we need to update the documentation on prob/logprob.

Related: #315 (comment) #325 (comment)

See also the | notation for models.

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