Skip to content

Refactor get_tau_sigma to handle lists #5747

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 27 commits into from
May 6, 2022
Merged

Refactor get_tau_sigma to handle lists #5747

merged 27 commits into from
May 6, 2022

Conversation

fonnesbeck
Copy link
Member

@fonnesbeck fonnesbeck commented May 5, 2022

Non-Variable arguments converted to arrays before bounds checking. Added simple test.

Closes #5745

@codecov
Copy link

codecov bot commented May 5, 2022

Codecov Report

Merging #5747 (18cbb43) into main (dd23c90) will decrease coverage by 0.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5747      +/-   ##
==========================================
- Coverage   89.22%   89.21%   -0.02%     
==========================================
  Files          75       75              
  Lines       13844    13846       +2     
==========================================
  Hits        12353    12353              
- Misses       1491     1493       +2     
Impacted Files Coverage Δ
pymc/distributions/continuous.py 97.98% <66.66%> (-0.20%) ⬇️

@fonnesbeck fonnesbeck requested a review from ricardoV94 May 5, 2022 18:26
tau_ = tau

tau_ = np.asarray(tau)
assert np.all(tau_ > 0), "tau must be positive"
Copy link
Member

Choose a reason for hiding this comment

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

While we are here, we should replace the asserts by a ValueError

@ghost
Copy link

ghost commented May 6, 2022

Stochastic test failure?

TimOliverMaier and others added 21 commits May 6, 2022 10:51
* support return constant_data with prior pred

* pre-commit format

* added test

* code review
…of RNGs needed

Reordered methods for consistency
* Deprecates AR1 distribution
* Implements random and moment methods
* Batching works on the left as with other distributions
This is consistent with the meaning of steps in the GaussianRandomWalk and translates directly to the number of scan steps taken
@fonnesbeck
Copy link
Member Author

Hmm, bad rebase.

@fonnesbeck fonnesbeck merged commit 53ad689 into pymc-devs:main May 6, 2022
@fonnesbeck fonnesbeck deleted the vector_sigma branch May 6, 2022 17:31
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.

TypeError when passing list of values as sigma
9 participants