Skip to content

Commit 4b052c6

Browse files
authored
Add more notebooks (#23)
1 parent c0f6dbf commit 4b052c6

35 files changed

+2829
-743
lines changed

.github/workflows/draft-paper.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: joss
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
paper:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Build draft PDF
16+
uses: openjournals/openjournals-draft-action@master
17+
with:
18+
journal: joss
19+
# This should be the path to the paper within your repo.
20+
paper-path: paper/paper.md
21+
- name: Upload
22+
uses: actions/upload-artifact@v1
23+
with:
24+
name: paper
25+
# This is the output path where Pandoc will write the compiled
26+
# PDF. Note, this should be the same directory as the input
27+
# paper.md
28+
path: paper/paper.pdf

.pre-commit-config.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ repos:
99
- id: check-toml
1010
- id: check-yaml
1111
- id: debug-statements
12-
- id: end-of-file-fixer
1312
- id: requirements-txt-fixer
1413
- id: trailing-whitespace
1514

@@ -60,15 +59,6 @@ repos:
6059
args: ["--ignore-missing-imports"]
6160
files: "(surjectors|examples)"
6261

63-
- repo: https://github.com/nbQA-dev/nbQA
64-
rev: 1.6.3
65-
hooks:
66-
- id: nbqa-black
67-
- id: nbqa-pyupgrade
68-
args: [--py39-plus]
69-
- id: nbqa-isort
70-
- id: nbqa-flake8
71-
7262
- repo: https://github.com/jorisroovers/gitlint
7363
rev: v0.19.1
7464
hooks:

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![status](http://www.repostatus.org/badges/latest/concept.svg)](http://www.repostatus.org/#concept)
44
[![ci](https://github.com/dirmeier/surjectors/actions/workflows/ci.yaml/badge.svg)](https://github.com/dirmeier/surjectors/actions/workflows/ci.yaml)
5-
[![codecov](https://codecov.io/gh/dirmeier/surjectors/branch/main/graph/badge.svg?token=dn1xNBSalZ)](https://codecov.io/gh/dirmeier/surjectors)
65
[![version](https://img.shields.io/pypi/v/surjectors.svg?colorB=black&style=flat)](https://pypi.org/project/surjectors/)
76

87
> Surjection layers for density estimation with normalizing flows

docs/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Examples
2-
========
1+
More examples
2+
=============
33

44
.. note::
55

docs/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
👋 Welcome to Surjectors!
44
=========================
55

6+
.. div:: sd-text-left sd-font-italic
7+
8+
Surjection layers for density estimation with normalizing flows
9+
10+
----
11+
612
Surjectors is a light-weight library for density estimation using
713
inference and generative surjective normalizing flows, i.e., flows can that reduce or increase dimensionality.
814
Surjectors builds on Distrax and Haiku and is fully compatible with both of them.
@@ -89,6 +95,9 @@ Surjectors is licensed under the Apache 2.0 License.
8995
:hidden:
9096

9197
Introduction <notebooks/introduction>
98+
Unconditional and conditional density estimation <notebooks/normalizing_flows>
99+
Dimensionality reduction using surjectors <notebooks/dimension_reduction>
100+
Self-contained scripts <examples>
92101

93102
.. toctree::
94103
:caption: 🧱 API

docs/news.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
📰 News
22
=======
33

4+
Latest news on the development of `Surjectors`.
5+
6+
-------
7+
48
.. note::
59

610
No news so far :).

0 commit comments

Comments
 (0)