-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOC] Update to HSSM documentation for better organization and code f…
…ormatting (#614) * Update README.md * Add back black as dev dependency to format code in documentation * Update to documentation
- Loading branch information
1 parent
8fd9584
commit 577cdc4
Showing
21 changed files
with
3,580 additions
and
2,174 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 |
---|---|---|
@@ -1 +1,19 @@ | ||
The `hssm.distribution_utils` contains useful functions for building `pm.Distribution` | ||
classes. Other than the `download_hf` function that downloads ONNX models shared on our | ||
[huggingface model repository](https://huggingface.co/franklab/HSSM/tree/main), you will | ||
generally not have to use these functions. For advanced users who want to build their | ||
own PyMC models, they can use these functions to create `pm.Distribution` and | ||
`RandomVariable` classes that they desire. | ||
|
||
::: hssm.distribution_utils | ||
handler: python | ||
options: | ||
members: | ||
- download_hf | ||
- make_distribution | ||
- make_ssm_rv | ||
- make_family | ||
- make_likelihood_callable | ||
- make_missing_data_callable | ||
- make_blackbox_op | ||
- assemble_callables |
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 |
---|---|---|
@@ -1 +1,27 @@ | ||
::: hssm | ||
Use `hssm.HSSM` class to construct an HSSM model. | ||
|
||
::: hssm.HSSM | ||
handler: python | ||
options: | ||
show_root_heading: true | ||
show_signature_annotations: true | ||
show_object_full_path: false | ||
show_signature: true # Make sure this is true | ||
docstring_options: | ||
ignore_init_summary: false | ||
members: | ||
- traces | ||
- pymc_model | ||
- sample | ||
- sample_posterior_predictive | ||
- sample_prior_predictive | ||
- vi | ||
- find_MAP | ||
- log_likelihood | ||
- summary | ||
- plot_trace | ||
- graph | ||
- plot_posterior_predictive | ||
- plot_quantile_probability | ||
- restore_traces | ||
- initial_point |
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
The `hssm.likelihoods` submodule exports a few likelihood functions. These functions | ||
are already used in the model building process for some supported models, such as `ddm`, | ||
`ddm_sdv`, and `full_ddm`, so you typically would not have to deal with them. However, | ||
they can be helpful if you want to use them to build a model yourself in PyMC. Please | ||
checkout the [this tutorial](../tutorials/pymc.ipynb) for more details. | ||
|
||
:::hssm.likelihoods |
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 @@ | ||
::: hssm.Link |
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 @@ | ||
::: hssm.load_data |
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 @@ | ||
::: hssm.ModelConfig |
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 @@ | ||
::: hssm.Param |
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 |
---|---|---|
@@ -1 +1,8 @@ | ||
The `hssm.plotting` module provide functionalities to create HSSM-specific plots such | ||
as the posterior predictive plots. Please checkout | ||
[the plotting tutorial](../tutorials/plotting.ipynb) for more examples on how to use | ||
these functions. Note that each plotting function has an equivalent in the | ||
[`hssm.HSSM`](hssm.md) class, so you can call these functions from a built model without | ||
having to import these functions. | ||
|
||
:::hssm.plotting |
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 @@ | ||
::: hssm.Prior |
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 @@ | ||
::: hssm.set_floatX |
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 @@ | ||
::: hssm.show_defaults |
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 @@ | ||
::: hssm.simulate_data |
Oops, something went wrong.