You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add .random method to MvGaussianRandomWalk (#4388)
* Implement random for MvGaussianRandomWalk
Implements the random method for MvGaussianRandomWalk,
partially fixing #4337.
* Update docstring for GaussianRandomWalk._random()
* Add example to random docstring
* Modify MvGaussianRandomWalk.random
Improves the implementation by using MvNormal.random as suggested by
@Sayam753. Also updated its docstring to add more examples.
* Add TestMvGaussianRandomWalk
* Pass entire shape to MvNormal
This commit rewrites the random method to pass the entire shape
into MvNormal. MvGaussianRandomWalk also now supports an integer shape
that must match the dimensionality of mu. In this case it is assumed
that there are no time steps, and a random sample from the multivariate
normal distribution will be returned.
* Fix rebase issue
* Update pymc3/distributions/timeseries.py
Remove equality since the shape parameter cannot have more than 2 dimensions.
Co-authored-by: Sayam Kumar <[email protected]>
* Update comment pymc3/distributions/timeseries.py
Co-authored-by: Sayam Kumar <[email protected]>
* Update pymc3/distributions/timeseries.py
Adds a more explicit conditional on the time_axis statement.
Co-authored-by: Sayam Kumar <[email protected]>
* Fix syntax error
* Add tests for MvGaussianRandomWalk with RV params
Added tests for both chol and cov to be random variables.
* Improve comment clarity in MvNormal._random
Moves the brittle comment in MvRandom._random's docstring to the actual location in the code for clarity.
* Update docstring formatting
* Update RELEASE-NOTES.md
Co-authored-by: Sayam Kumar <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE-NOTES.md
+1
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ It also brings some dreadfully awaited fixes, so be sure to go through the chang
20
20
-`OrderedProbit` distribution added (see [#4232](https://github.com/pymc-devs/pymc3/pull/4232)).
21
21
-`plot_posterior_predictive_glm` now works with `arviz.InferenceData` as well (see [#4234](https://github.com/pymc-devs/pymc3/pull/4234))
22
22
- Add `logcdf` method to all univariate discrete distributions (see [#4387](https://github.com/pymc-devs/pymc3/pull/4387)).
23
+
- Add `random` method to `MvGaussianRandomWalk` (see [#4388](https://github.com/pymc-devs/pymc3/pull/4388))
23
24
24
25
### Maintenance
25
26
- Fixed bug whereby partial traces returns after keyboard interrupt during parallel sampling had fewer draws than would've been available [#4318](https://github.com/pymc-devs/pymc3/pull/4318)
0 commit comments