Skip to content

Design/improve/unifty sample() interface #746

@xukai92

Description

@xukai92

Questions and my current thoughts

  • How to pass initial state
    • Support sample(..., init::Array{Union{Missing, Array{Float64,1}},1}=[missing])
    • We flat init, and assign those variables which are not missed to vi[spl]
    • Constructing a correct init is the user's responsibility
  • How to pass adaptation configuration
    • Take use of AdvancedHMC.Adaptation
    • sample(..., adapt::Union{Nothing,AbstractAdaptor}=nothing)
  • How to pass continuing chain
    • sample(..., resume::Union{Nothing,AbstractChain}=nothing)
    • How do we resume an adapted sampler?
      • With the new interface of AdvancedHMC.Adaptation, the adapted sampler is just the types but not the adapter or any other thing. So if we can make the types in Turing to be 1:1 to those types, we can resume the adapted sampler.

Related issue:

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