Skip to content

Add backports module and backport logp syntax #5083

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 2 commits into from
Oct 17, 2021

Conversation

michaelosthege
Copy link
Member

I did not backport the other related functions (e.g. logcdf), but the backport of pm.logp() alone should cover >90 % of the use cases.

Closes #5052

@michaelosthege
Copy link
Member Author

The compilation error in that test appeared on another PR a few days ago already.
Looks like a compilation dependency is slowly falling apart..

@@ -13,6 +13,7 @@ jobs:
floatx: [float32, float64]
test-subset:
- |
--ignore=pymc3/tests/test_backports.py
Copy link
Member

Choose a reason for hiding this comment

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

Just curious why do we need to ignore it here? is it due to CI time?

Copy link
Member Author

Choose a reason for hiding this comment

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

The first job in this matrix is the fall-back which runs all test files that aren't explicitly mentioned by the others.
It's complemented by the check_all_tests_are_covered.py pre-commit script checking that there's also no test file that's run by another job but not ignored here.

Pro-tip: On main you can run python scripts/check_all_tests_are_covered.py locally and it shows you which OS/floatX combination each test file is running in.

canyon289
canyon289 previously approved these changes Oct 17, 2021
Copy link
Member

@canyon289 canyon289 left a comment

Choose a reason for hiding this comment

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

Assuming CI failures are unrelated per comment

Co-authored-by: Ravin Kumar <ravinsdrive@gmail.com>
@michaelosthege michaelosthege merged commit fc1aceb into pymc-devs:v3 Oct 17, 2021
@michaelosthege michaelosthege deleted the v3-backport-logp branch October 17, 2021 16:29
@canyon289
Copy link
Member

Thank you @michaelosthege

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.

3 participants