-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
720147c
commit 8aec3e0
Showing
24 changed files
with
1,012 additions
and
675 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
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,8 @@ | ||
# Bayes | ||
|
||
The bayesian module is designed to ease the calculation of things like convariance and fisher matrices in differentiable ways. It implements two likelihood functions `poiss_loglike` and `chi2_loglike`. They both take in a pytree and data and return a scalar log likelihood. The `poiss_loglike` function assumes the data is poisson distributed and the `chi2_loglike` function assumes the data is normally distributed. To use these functions the input pytree _must_ have a `.model()` function. | ||
|
||
There are also four functions used to calcualte fisher and covariances matrices: `fisher_matrix`, `covariance_matrix`, `self_fisher_matrix`, `self_covariance_matrix`. The `fisher_matrix` and `covariance_matrix` functions take in a pytree, parameters, a log likelihood function and data. They return the fisher and covariance matrices respectively. The `self_fisher_matrix` and `self_covariance_matrix` functions take in a pytree, parameters and a log likelihood function. They return the fisher and covariance matrices respectively, but the data is generated from the model itself. | ||
|
||
!!! info "Full API" | ||
::: zodiax.bayes |
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,6 +1,10 @@ | ||
# Tree | ||
|
||
The Tree module provides a module for helpful pytree manipulation functions. It only implements a single function, `get_args(paths)`. It returns a matching pytree with boolean leaves, where the leaves specified by `paths` are `True` and the rest are `False`. | ||
The Tree module provides a module for helpful pytree manipulation functions. It implements two functions, `boolean_filter(pytree, parameters)` and `set_array(pytree, parameters)`. | ||
|
||
`boolean_filter(pytree, parameters)` returns a matching pytree with boolean leaves, where the leaves specified by `parameters` are `True` and the rest are `False`. | ||
|
||
`set_array(pytree, parameters)` returns a matching pytree with the leaves specified by `parameters` set to the value of the corresponding leaf in `pytree`. This is to ensure they have a shape parameter in order to create dynamic array shapes for the bayesian module. | ||
|
||
!!! info "Full API" | ||
::: zodiax.tree |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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.