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

replaced all pymc potential with pymc censored #750

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

Dekermanjian
Copy link
Contributor

@Dekermanjian Dekermanjian commented Nov 25, 2024

Update AFT Weibull notebook to use pm.Censored instead of pm.Potential

Related to #747

I updated all 3 parameterizations of the AFT Weibull model to utilize pm.Censored instead of pm.Potential. I also added into the markdown, after the pm.Potential is discussed, why we would rather use pm.Censored.

For the 1st two parameterizations the estimates are the same using pm.Censored as they are with pm.Potential for the last parameterization the parameter estimates are slightly shifted.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@fonnesbeck fonnesbeck left a comment

Choose a reason for hiding this comment

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

Thanks for this!

@fonnesbeck fonnesbeck merged commit 1ed0a6d into pymc-devs:main Dec 16, 2024
2 checks passed
@Dekermanjian
Copy link
Contributor Author

@fonnesbeck
Absolutely! Happy to contribute!

fonnesbeck pushed a commit to fonnesbeck/pymc-examples that referenced this pull request Dec 20, 2024
* replaced all pymc potential with pymc censored

* removed gumbel_sf function that is not being used

* added rng to samplers

* put back seeds for sampling data observations

---------

Co-authored-by: Jonathan Dekermanjian <[email protected]>
fonnesbeck pushed a commit to fonnesbeck/pymc-examples that referenced this pull request Dec 20, 2024
* replaced all pymc potential with pymc censored

* removed gumbel_sf function that is not being used

* added rng to samplers

* put back seeds for sampling data observations

---------

Co-authored-by: Jonathan Dekermanjian <[email protected]>
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.

2 participants