Skip to content

MCLMC adaptation num_steps and initial guess #777

@hsimonfroy

Description

@hsimonfroy

Hello,
2 small things:

adaptation num_steps

mclmc_find_L_and_step_size now also returns an estimate of the number of steps performed, but does not take into account roundings and +1 (negligeables), and especially stepsize readjustment when diagonally preconditioning:

                # readjust the stepsize
                steps = num_steps2 // 3  # we do some small number of steps

adaptation initial guess

It may be worth to allow initial guess proposition for adapted parameters. Currently, they are initialized at

    params = MCLMCAdaptationState(sqrt(dim), jnp.sqrt(dim) * 0.25, inverse_mass_matrix=jnp.ones((dim,))

so if the optimal values are far from it, convergence can be slower than if starting at a better guess. This can simply be an optional MCLMCAdaptationState or dict replacing the initialization.

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