Skip to content

BUG: max_treedepth argument to pm.sample throws error  #6737

@dehorsley

Description

@dehorsley

Describe the issue:

Supplying argument max_treedepth to pm.sample throws a ValueError.

Bisect suggests it was introduced in this commit: 0660efa

Reproduceable code example:

import pymc as pm

with pm.Model() as m:
    pm.Normal("mu")
    pm.sample(max_treedepth=15)

Error message:

ValueError: Unused step method arguments: {'max_treedepth'}

PyMC version information:

5.4.0

Context for the issue:

No response

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