Skip to content

Commit

Permalink
Merge pull request #56 from danielward27/docs
Browse files Browse the repository at this point in the history
Docs
  • Loading branch information
danielward27 authored Dec 20, 2022
2 parents 25788ef + 37304c1 commit fa7dee2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
## FlowJax: Normalising Flows in Jax
-------

## Documentation
Available [here](https://danielward27.github.io/flowjax/distributions.html).

## Short example
Training a flow can be done in a few lines of code:

```
Expand Down Expand Up @@ -32,7 +36,6 @@ The package currently supports the following:
- `BlockNeuralAutoregressiveFlow`, as introduced by [De Cao et al., 2019](https://arxiv.org/abs/1904.04676)
- `TriangularSplineFlow`, introduced here.

For examples of basic usage, see [examples](https://github.com/danielward27/flowjax/blob/main/examples/).

## Installation
```
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
project = 'FlowJax'
copyright = '2022, Daniel Ward'
author = 'Daniel Ward'
release = 'v6.0.0'
release = 'v6.1.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion flowjax/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""flowjax - Basic flowjax implementation in jax."""

__version__ = "6.0.0"
__version__ = "6.1.0"
__author__ = "Daniel Ward <danielward27@outlook.com>"
__all__ = []
15 changes: 9 additions & 6 deletions flowjax/bijections/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@

from flowjax.transformers import Transformer as _Transformer

def Transformer(*args, **kwargs):
warnings.warn(
"Please use flowjax.transformers.Transformer.",
DeprecationWarning, stacklevel=2)
return _Transformer(*args, **kwargs)


class Transformer(_Transformer):
def __init__(self, *args, **kwargs) -> None:
"Deprecated location of transfomer, use flowjax.transformers.Transformer instead."
warnings.warn(
"Please use flowjax.transformers.Transformer.",
DeprecationWarning, stacklevel=2)
super().__init__(*args, **kwargs)


class Bijection(ABC, Module):
"""Basic bijection class. All bijections should support conditioning variables
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def read(filename):

setup(
name="flowjax",
version="6.0.0",
version="6.1.0",
url="https://github.com/danielward27/flowjax.git",
license="MIT",
author="Daniel Ward",
Expand Down

0 comments on commit fa7dee2

Please sign in to comment.