Skip to content

Create dispatch functions for resize_dist and ndim_supp_dist #5702

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

Closed

Conversation

ricardoV94
Copy link
Member

This allows us to better manipulate SymbolicDistributions and get closer to #5533

Comment on lines +567 to +568
# Create a temporary dist to obtain the ndim_supp
ndim_supp = ndim_supp_dist(cls.rv_op(*dist_params, size=size))
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not great, but can't think of a less wasteful way

@ricardoV94 ricardoV94 force-pushed the dispatch_resizing_ndim_supp branch from daa6163 to 4702bd4 Compare April 8, 2022 17:47
@codecov
Copy link

codecov bot commented Apr 8, 2022

Codecov Report

Merging #5702 (4702bd4) into main (8350b29) will decrease coverage by 4.14%.
The diff coverage is 71.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5702      +/-   ##
==========================================
- Coverage   88.89%   84.74%   -4.15%     
==========================================
  Files          75       75              
  Lines       13746    13770      +24     
==========================================
- Hits        12219    11669     -550     
- Misses       1527     2101     +574     
Impacted Files Coverage Δ
pymc/distributions/censored.py 38.98% <38.46%> (-56.02%) ⬇️
pymc/distributions/mixture.py 71.50% <46.15%> (-25.56%) ⬇️
pymc/distributions/distribution.py 85.36% <66.66%> (-4.88%) ⬇️
pymc/model.py 85.54% <66.66%> (-0.62%) ⬇️
pymc/distributions/multivariate.py 87.69% <75.00%> (-4.47%) ⬇️
pymc/distributions/shape_utils.py 83.18% <85.71%> (-13.90%) ⬇️
pymc/aesaraf.py 88.53% <100.00%> (-2.83%) ⬇️
pymc/distributions/timeseries.py 47.31% <100.00%> (ø)
pymc/sampling.py 88.43% <100.00%> (-0.11%) ⬇️
pymc/func_utils.py 22.50% <0.00%> (-65.00%) ⬇️
... and 20 more

@ricardoV94 ricardoV94 changed the title Create dispatch functions for resize_dist ndim_supp_dist Create dispatch functions for resize_dist and ndim_supp_dist Apr 8, 2022
@ricardoV94
Copy link
Member Author

Closed in favor of #6072

@ricardoV94 ricardoV94 closed this Aug 26, 2022
@ricardoV94 ricardoV94 deleted the dispatch_resizing_ndim_supp branch June 6, 2023 02:57
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.

1 participant