-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap DensityDist's random with generate_samples (#3554)
* Fix for 3553. Wrapped random with generate_samples. Added tests and extra control in DensityDist. Extended the related docstring and made sure it was linked into the online docs. Make the docs for `generate_samples` and `draw_values` appear in the API manual pages. Also add docs for other bits of distributions/distribution.py Added point parameter to rand call. Updated release notes.
- Loading branch information
1 parent
517f10d
commit 8b3ecf9
Showing
6 changed files
with
363 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ Distributions | |
distributions/multivariate | ||
distributions/mixture | ||
distributions/timeseries | ||
distributions/utilities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
******************************************* | ||
Distribution utility classes and functions | ||
******************************************* | ||
|
||
.. currentmodule:: pymc3.distributions | ||
.. autosummary:: | ||
|
||
Distribution | ||
Discrete | ||
Continuous | ||
NoDistribution | ||
DensityDist | ||
TensorType | ||
|
||
draw_values | ||
generate_samples | ||
|
||
|
||
.. autoclass:: Distribution | ||
.. autoclass:: Discrete | ||
.. autoclass:: Continuous | ||
.. autoclass:: NoDistribution | ||
.. autoclass:: DensityDist | ||
:members: | ||
.. autofunction:: TensorType | ||
|
||
.. autofunction:: draw_values | ||
.. autofunction:: generate_samples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.