Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix draws of Weibull when alpha and beta implicitly define size #7288

Merged
merged 2 commits into from
Apr 28, 2024

Conversation

tomicapretto
Copy link
Contributor

@tomicapretto tomicapretto commented Apr 28, 2024

Description

This PR incorporates the broadcasting of the shapes of alpha and beta in the random value generation method from the Weibull distribution to provide a fix to the problem shown in #7220

Related Issue

Closes #7220

Type of change

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

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

@ricardoV94
Copy link
Member

Thanks @tomicapretto, great test although a bit unfair that it only exists for this RV.

That means I'm okay with no regression test here, but I am definitely not against it either

@ricardoV94 ricardoV94 added the bug label Apr 28, 2024
@ricardoV94 ricardoV94 merged commit 84d15c8 into pymc-devs:main Apr 28, 2024
20 of 21 checks passed
@ricardoV94
Copy link
Member

Thanks @tomicapretto !

@ricardoV94 ricardoV94 mentioned this pull request Apr 29, 2024
9 tasks
@ricardoV94 ricardoV94 changed the title Broadcast shapes of alpha and beta in Weibull rng Fix draws of Weibull when alpha and beta implicitly define size Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Generation of random draws from Weibull returns constant values
2 participants