Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pymc/distributions/mixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ def dist(cls, psi, mu=None, alpha=None, p=None, n=None, **kwargs):
)


def _hurdle_mixture(*, name, nonzero_p, nonzero_dist, dtype, **kwargs):
def _hurdle_mixture(*, name, nonzero_p, nonzero_dist, dtype, max_n_steps=10_000, **kwargs):
"""Helper function to create a hurdle mixtures

If name is `None`, this function returns an unregistered variable
Expand All @@ -819,7 +819,7 @@ def _hurdle_mixture(*, name, nonzero_p, nonzero_dist, dtype, **kwargs):
weights = pt.stack([1 - nonzero_p, nonzero_p], axis=-1)
comp_dists = [
DiracDelta.dist(zero),
Truncated.dist(nonzero_dist, lower=lower),
Truncated.dist(nonzero_dist, lower=lower, max_n_steps=max_n_steps),
]

if name is not None:
Expand Down