Skip to content

Bijectors and initial values to NUTS #641

Open
@adamhaber

Description

@adamhaber

Hi,

I have a question about the initial values passed to a NUTS sampler with constraining bijectors. As far as I understand, the initial values should be in the constrained space, right? If so - perhaps it would be more "friendly" to accept initial values from the unconstrained space? It took me a while to figure out why NUTS is returning nans...

I guess it's not too complicated (for the user, that is) to add something like

current_state=[bijector.forward(init) for bijector, init in zip(bijectors_list, initial_states)],

when calling the sample_mcmc function (this seems to work, at least in a simple example); Just raising the point to hear other people's thoughts on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions