Skip to content

Censored data: v3 -> v4 #341

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

Merged
merged 21 commits into from
May 31, 2022
Merged

Conversation

drbenvincent
Copy link
Contributor

see #126

  • Updates the notebook from v3 to v4 for the hackathon.
  • Partial use of best practice.
  • Changed the imputed model code - no longer uses pm.Bound
  • Changed the unimpeded model code - uses pm.Censored

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@drbenvincent drbenvincent changed the title Censored data Censored data: v3 -> v4 May 31, 2022
@review-notebook-app
Copy link

review-notebook-app bot commented May 31, 2022

View / edit / reply to this conversation on ReviewNB

aloctavodia commented on 2022-05-31T18:53:35Z
----------------------------------------------------------------

nitpick, maybe we can round to one or two digits


drbenvincent commented on 2022-05-31T19:41:55Z
----------------------------------------------------------------

done :)

@review-notebook-app
Copy link

review-notebook-app bot commented May 31, 2022

View / edit / reply to this conversation on ReviewNB

aloctavodia commented on 2022-05-31T18:53:36Z
----------------------------------------------------------------

This model makes use of PyMC's bounded variables.


drbenvincent commented on 2022-05-31T19:42:15Z
----------------------------------------------------------------

Well spotted. I've removed this now.

Copy link
Contributor Author

done :)


View entire conversation on ReviewNB

Copy link
Contributor Author

Well spotted. I've removed this now.


View entire conversation on ReviewNB

@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

ricardoV94 commented on 2022-05-31T20:42:07Z
----------------------------------------------------------------

The dictionary warning should not be present with the latest aesara dependency from main


@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

ricardoV94 commented on 2022-05-31T20:42:08Z
----------------------------------------------------------------

Perhaps import Interval on a distinct line so it's not so verbose in the distribution call?

from pymc.distributions.transforms import Interval`

@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

ricardoV94 commented on 2022-05-31T20:42:09Z
----------------------------------------------------------------

Maybe expand slightly? "W can make use of pm.Censored to marginalize over the unobserved censored values.


@drbenvincent drbenvincent merged commit a1dd985 into pymc-devs:main May 31, 2022
@drbenvincent drbenvincent deleted the censored-data branch May 31, 2022 21:09
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