Skip to content

Update synth.py - #9

Merged
lauravoicu merged 3 commits into
mainfrom
lauravoicu-patch-1
Oct 16, 2025
Merged

Update synth.py#9
lauravoicu merged 3 commits into
mainfrom
lauravoicu-patch-1

Conversation

@lauravoicu

Copy link
Copy Markdown
Member

Summary

Fix CI fuzz

  • Discrete outputs are integers: poisson, binomial, negbin now explicitly return np.int64.
  • Negative binomial is robust: Gamma–Poisson mixture handles any positive k (dispersion), not just integer counts.
  • Safer parameter checks: prevents NaNs/inf and catches degenerate quantiles for lognormal; validates shapes and scales.
  • Shapes are consistent: always uses int(size) and returns 1-D arrays of length size (except Dirichlet, which stays (size, K)).

Type of change

  • Fix
  • Feature
  • CI/CD
  • Docs
  • Chore

@lauravoicu
lauravoicu merged commit a9c1266 into main Oct 16, 2025
8 checks passed
@lauravoicu
lauravoicu deleted the lauravoicu-patch-1 branch October 16, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant