-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Get the transform docs into the API pages. #3690
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
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
eec41a9
Extend exports from transforms.
rpgoldman e657790
Add docs for distributions.transforms.
rpgoldman b9cbc93
Improve documentation of transform aliases.
rpgoldman 859dac5
Export improvements requested by @ColCarroll.
rpgoldman 75f4f58
Minor edits to clarify transformations.
rpgoldman 76da1b4
Added API page for random variables.
rpgoldman 62a7e1a
Fix typo @twiecki caught and some others.
rpgoldman e8dfa94
Add to release notes.
rpgoldman 4cfa494
Fix typesetting of parameters.
rpgoldman 4220414
Add docstring for t_stick_breaking()
rpgoldman 879fa5d
Slightly improved Table of Contents.
rpgoldman 0556809
Fix formatting of additional parameters.
rpgoldman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -20,6 +20,7 @@ API Reference | |
api/data | ||
api/model | ||
api/model_graph | ||
api/variables | ||
api/shape_utils | ||
|
||
|
||
|
This file contains hidden or 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 hidden or 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,138 @@ | ||
**************************************************************** | ||
Transformations of a random variable from one space to another. | ||
**************************************************************** | ||
|
||
Note that for convenience these entities can be addressed as | ||
``pm.transforms.``\ *X* for any name *X*, although they are actually | ||
implemented as ``pm.distributions.transforms.``\*X*. | ||
|
||
.. currentmodule:: pymc3.distributions.transforms | ||
.. autosummary:: | ||
|
||
transform | ||
stick_breaking | ||
logodds | ||
interval | ||
log_exp_m1 | ||
lowerbound | ||
upperbound | ||
ordered | ||
log | ||
sum_to_1 | ||
t_stick_breaking | ||
circular | ||
CholeskyCovPacked | ||
Chain | ||
|
||
|
||
|
||
Transform Instances | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
Transform instances are the entities that should be used in the | ||
``transform`` parameter to a random variable constructor. These are | ||
initialized instances of the Transform Classes, which are described | ||
below. | ||
|
||
.. glossary:: | ||
``stick_breaking`` | ||
Instantiation of :class:`~pymc3.distributions.transforms.StickBreaking` | ||
:class:`~pymc3.distributions.transforms.Transform` class for use in the ``transform`` | ||
argument of a random variable. | ||
|
||
``logodds`` | ||
Instantiation of | ||
:class:`~pymc3.distributions.transforms.LogOdds` :class:`~pymc3.distributions.transforms.Transform` class | ||
for use in the ``transform`` argument of a random variable. | ||
|
||
``interval`` | ||
Alias of | ||
:class:`~pymc3.distributions.transforms.Interval` :class:`~pymc3.distributions.transforms.Transform` class | ||
for use in the ``transform`` argument of a random variable. | ||
|
||
``log_exp_m1`` | ||
Instantiation of | ||
:class:`~pymc3.distributions.transforms.LogExpM1` :class:`~pymc3.distributions.transforms.Transform` class | ||
for use in the ``transform`` argument of a random variable. | ||
|
||
``lowerbound`` | ||
Alias of | ||
:class:`~pymc3.distributions.transforms.LowerBound` :class:`~pymc3.distributions.transforms.Transform` class | ||
for use in the ``transform`` argument of a random variable. | ||
|
||
``upperbound`` | ||
Alias of | ||
:class:`~pymc3.distributions.transforms.UpperBound` :class:`~pymc3.distributions.transforms.Transform` class | ||
for use in the ``transform`` argument of a random variable. | ||
|
||
``ordered`` | ||
Instantiation of | ||
:class:`~pymc3.distributions.transforms.Ordered` :class:`~pymc3.distributions.transforms.Transform` class | ||
for use in the ``transform`` argument of a random variable. | ||
|
||
``log`` | ||
Instantiation of | ||
:class:`~pymc3.distributions.transforms.Log` :class:`~pymc3.distributions.transforms.Transform` class | ||
for use in the ``transform`` argument of a random variable. | ||
|
||
|
||
``sum_to_1`` | ||
Instantiation of | ||
:class:`~pymc3.distributions.transforms.SumTo1` :class:`~pymc3.distributions.transforms.Transform` class | ||
for use in the ``transform`` argument of a random variable. | ||
|
||
|
||
``circular`` | ||
Instantiation of | ||
:class:`~pymc3.distributions.transforms.Circular` :class:`~pymc3.distributions.transforms.Transform` class | ||
for use in the ``transform`` argument of a random variable. | ||
|
||
|
||
.. autofunction:: t_stick_breaking | ||
|
||
|
||
Transform Base Classes | ||
~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Typically the programmer will not use these directly. | ||
|
||
.. autoclass:: Transform | ||
:members: | ||
.. autoclass:: transform | ||
:members: | ||
.. autoclass:: TransformedDistribution | ||
:members: | ||
|
||
|
||
Transform Composition Classes | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: Chain | ||
:members: | ||
.. autoclass:: CholeskyCovPacked | ||
:members: | ||
|
||
|
||
Specific Transform Classes | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: Log | ||
:members: | ||
.. autoclass:: LogExpM1 | ||
:members: | ||
.. autoclass:: LogOdds | ||
:members: | ||
.. autoclass:: Interval | ||
:members: | ||
.. autoclass:: LowerBound | ||
:members: | ||
.. autoclass:: UpperBound | ||
:members: | ||
.. autoclass:: Ordered | ||
:members: | ||
.. autoclass:: SumTo1 | ||
:members: | ||
.. autoclass:: StickBreaking | ||
:members: | ||
.. autoclass:: Circular | ||
:members: |
This file contains hidden or 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,28 @@ | ||
Random Variables | ||
---------------- | ||
|
||
.. currentmodule:: pymc3.model | ||
|
||
The normal PyMC3 programmer will typically not need to interact with these classes, except possibly when debugging. Otherwise they are primarily of interest to developers. | ||
|
||
|
||
.. autoclass:: PyMC3Variable | ||
:members: | ||
|
||
|
||
.. autoclass:: ValueGradFunction | ||
:members: | ||
|
||
|
||
.. autoclass:: FreeRV | ||
:members: | ||
|
||
.. autoclass:: ObservedRV | ||
:members: | ||
|
||
.. autoclass:: MultiObservedRV | ||
:members: | ||
|
||
.. autoclass:: TransformedRV | ||
:members: | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.