Skip to content

replaced all pymc potential with pymc censored - #750

Merged
fonnesbeck merged 4 commits into
pymc-devs:mainfrom
Dekermanjian:aft_with_censored
Dec 16, 2024
Merged

replaced all pymc potential with pymc censored#750
fonnesbeck merged 4 commits into
pymc-devs:mainfrom
Dekermanjian:aft_with_censored

Conversation

@Dekermanjian

@Dekermanjian Dekermanjian commented Nov 25, 2024

Copy link
Copy Markdown
Contributor

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.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@fonnesbeck fonnesbeck left a comment

Copy link
Copy Markdown
Member

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
@Dekermanjian

Copy link
Copy Markdown
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 <dekermanjian@Jonathans-MacBook-Pro.local>
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 <dekermanjian@Jonathans-MacBook-Pro.local>
fonnesbeck pushed a commit to fonnesbeck/pymc-examples that referenced this pull request Jan 19, 2025
* 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 <dekermanjian@Jonathans-MacBook-Pro.local>
fonnesbeck pushed a commit to fonnesbeck/pymc-examples that referenced this pull request Jan 19, 2025
* 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 <dekermanjian@Jonathans-MacBook-Pro.local>
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