Skip to content

Conversation

@premshaw04
Copy link
Contributor

@premshaw04 premshaw04 commented Nov 5, 2025

Description

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • [*] Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pymc--7954.org.readthedocs.build/en/7954/

@github-actions github-actions bot added docs hackathon Suitable for hackathon labels Nov 5, 2025
@premshaw04
Copy link
Contributor Author

please pre-commit.ci autofix.

.. warning:: dist will be cloned, rendering it independent of the one passed as input.
lower : float or None
lower : float | int | array-like | None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use human readable hints in the docstrings. Should be something like tensor_like, optional

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ricardoV94 Thank you so much sir for your suggestion, i will fix it.

>>> y = np.array([3.2, 10.5, 1.1, 14.4])
>>> lower = np.array([-np.inf, 9.0, -np.inf, 12.0])
>>> upper = np.array([ 4.0, np.inf, 2.5, np.inf])
>>> Censored("y_obs", pm.Normal.dist(mu=5, sigma=3), lower=lower, upper=upper, observed=y)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't run because it's not in a model context. Also use same format as previous examples not with >>> for consistency

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ricardoV94 Thank you so much sir for your suggestion , i will fix it really quick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs hackathon Suitable for hackathon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mention vector bounds in Censored docstrings

2 participants