Skip to content

0.30

Latest

Choose a tag to compare

@peterhurford peterhurford released this 08 Jun 14:18
  • [Breaking change] Adds support for Python 3.13 and 3.14, drops support for Python 3.9 and 3.10.
  • [Breaking change] Removed roll_die and flip_coin functions. Use sq.die(sides) @ n or ~sq.coin() instead.
  • Integration test timing checks no longer warn when a test runs faster than its baseline — only slower-than-baseline deviations are flagged.
  • Added die(sides, explode_on=None) and coin() as distribution objects for dice and coins. These support all distribution operations like ~, @, +, -, etc. The die distribution also supports "exploding dice" mechanics via the explode_on parameter.
  • Added dirichlet(alpha) distribution, a multivariate generalization of the beta distribution that samples a probability vector summing to 1.
  • Added documentation for model functions and sq.sample in README.
  • Uses prettier tqdm output that is now aware of Jupyter notebooks.
  • bayes.update now supports lognorm and gamma distributions in addition to norm and beta.
  • Allow zero_inflated to accept 0 or 1 as probabilities.