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

Remove intX and floatX from distributions #7114

Merged

Conversation

aerubanov
Copy link
Contributor

@aerubanov aerubanov commented Jan 23, 2024

Type of change

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

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

@aerubanov aerubanov marked this pull request as draft January 23, 2024 15:02
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (627a8dd) 90.41% compared to head (00ca006) 92.35%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7114      +/-   ##
==========================================
+ Coverage   90.41%   92.35%   +1.93%     
==========================================
  Files         101      101              
  Lines       16930    16922       -8     
==========================================
+ Hits        15308    15629     +321     
+ Misses       1622     1293     -329     
Files Coverage Δ
pymc/distributions/bound.py 100.00% <100.00%> (ø)
pymc/distributions/continuous.py 97.53% <100.00%> (-0.01%) ⬇️
pymc/distributions/discrete.py 99.10% <100.00%> (-0.01%) ⬇️
pymc/distributions/mixture.py 94.95% <100.00%> (-0.03%) ⬇️
pymc/distributions/multivariate.py 93.78% <100.00%> (-0.02%) ⬇️
pymc/distributions/simulator.py 84.17% <100.00%> (-0.12%) ⬇️
pymc/distributions/timeseries.py 94.45% <100.00%> (ø)
pymc/distributions/transforms.py 98.47% <100.00%> (-0.02%) ⬇️

... and 6 files with indirect coverage changes

@aerubanov
Copy link
Contributor Author

aerubanov commented Jan 29, 2024

Also, tests/variational/test_inference.py::test_fit_start[SVGD-mini] fails but I do not sure is it related with changes in this PR. This test just skipped when using pytest==7.* and fails with pytest==8.0. I think it`s related with exceptions and warning handling order inside pytest.

@aerubanov aerubanov marked this pull request as ready for review January 29, 2024 14:58
@aerubanov aerubanov changed the title remove floatX() from distribution/continuous.py remove floatX() from distributions Jan 29, 2024
@aerubanov
Copy link
Contributor Author

@ricardoV94 could you please take a look?

@ricardoV94 ricardoV94 changed the title remove floatX() from distributions Remove floatX() from distributions Feb 5, 2024
@ricardoV94 ricardoV94 changed the title Remove floatX() from distributions Remove floatX from distributions Feb 5, 2024
@@ -419,6 +419,7 @@ def test_truncated_gamma():
np.testing.assert_allclose(
logp_pymc,
logp_scipy,
rtol=2.1e-07,
Copy link
Member

Choose a reason for hiding this comment

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

Is this needed? We shouldn't have changed results numerically

@ricardoV94 ricardoV94 changed the title Remove floatX from distributions Remove intX and floatX from distributions Feb 6, 2024
aerubanov and others added 5 commits February 9, 2024 15:34
Co-authored-by: Ricardo Vieira <28983449+ricardoV94@users.noreply.github.com>
Co-authored-by: Ricardo Vieira <28983449+ricardoV94@users.noreply.github.com>
Co-authored-by: Ricardo Vieira <28983449+ricardoV94@users.noreply.github.com>
@aerubanov aerubanov force-pushed the remove-floatx-calls-from-distribution branch from d78216a to f2b5ef5 Compare February 9, 2024 12:34
@aerubanov
Copy link
Contributor Author

@ricardoV94 I added some changes, could you please take a look?

@aerubanov
Copy link
Contributor Author

@ricardoV94 just friendly reminder about PR)

@ricardoV94 ricardoV94 merged commit 3a304d6 into pymc-devs:main Feb 17, 2024
23 checks passed
@ricardoV94
Copy link
Member

Thanks @aerubanov !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance major Include in major changes release notes section
Projects
None yet
2 participants