Skip to content

target_accept can be larger than 1 #7460

Open
@tomicapretto

Description

@tomicapretto

Description

It happened to a friend that they wrote target_accept instead of random_seed. Surprised by how long it was taking to sample, they double-checked the code. A larger surprised was to find that the actual argument was target_accept=121195 and PyMC was still "working".

See the example

import pymc as pm

with pm.Model():
    pm.Normal("x")
    pm.sample(target_accept=121195)

This is with PyMC 5.16.2... Shouldn't this be an error?

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