-
Notifications
You must be signed in to change notification settings - Fork 12
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
2059a40
commit af9bf9a
Showing
46 changed files
with
3,081 additions
and
2,382 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Contributing guidelines | ||
|
||
TODO |
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,23 @@ | ||
# Likelihood-free AMortized Posterior Estimation | ||
<p align="center"><img src="https://raw.githubusercontent.com/francois-rozet/lampe/master/sphinx/static/banner.svg" width="100%"></p> | ||
|
||
# LAMPE | ||
|
||
`lampe` is a simulation-based inference (SBI) package that focuses on amortized estimation of posterior distributions, without relying on explicit likelihood functions; hence the name *Likelihood-free AMortized Posterior Estimation* (LAMPE). The package provides [PyTorch](https://pytorch.org) implementations of modern amortized simulation-based inference algorithms like neural ratio estimation (NRE), neural posterior estimation (NPE) and more. Similar to PyTorch, the philosophy of LAMPE is to avoid obfuscation and expose all components, from network architecture to optimizer, to the user such that they are free to modify or replace anything they like. | ||
|
||
## Installation | ||
|
||
The `lampe` package is available on [PyPI](https://pypi.org/project/lampe), which means it is installable via `pip`. | ||
|
||
``` | ||
pip install lampe | ||
``` | ||
|
||
Alternatively, if you need the latest features, you can install it from the repository. | ||
|
||
``` | ||
pip install git+https://github.com/francois-rozet/lampe | ||
``` | ||
|
||
## Documentation | ||
|
||
The documentation is made with [Sphinx](https://www.sphinx-doc.org) and [Furo](https://github.com/pradyunsg/furo) and is hosted at [francois-rozet.github.io/lampe](https://francois-rozet.github.io/lampe). |
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,7 @@ | ||
r"""Likelihood-free AMortized Posterior Estimation""" | ||
r"""Likelihood-free AMortized Posterior Estimation (LAMPE)""" | ||
|
||
from .data import SimulatorLoader, H5Loader, h5save | ||
from .mcmc import MetropolisHastings, InferenceSampler | ||
from .nn import NRE, NPE, NREPipe, NPEPipe | ||
from .priors import JointNormal, JointUniform | ||
from . import patch | ||
from .data import JointLoader, H5Dataset | ||
from .nn import NRE, NPE | ||
from .nn.losses import NRELoss, NPELoss | ||
from .priors import BoxUniform, DiagNormal |
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.