Skip to content

Keras 3: Streamlined Backend #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 655 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
655 commits
Select commit Hold shift + click to select a range
9766e1f
Update lotka_volterra.py
Chase-Grajeda Jul 2, 2024
17a75b8
Added inverse_kinematics benchmark
Chase-Grajeda Jul 2, 2024
37a3fc0
Formatting clean up
Chase-Grajeda Jul 2, 2024
cfb4638
Bugfix
stefanradev93 Jul 3, 2024
46bc669
Added remaining benchmarks
Chase-Grajeda Jul 3, 2024
469104d
Cleanup
Chase-Grajeda Jul 3, 2024
583d169
Update sir.py
Chase-Grajeda Jul 3, 2024
5a72c85
reorganize fixtures, improve parametrized test id generation
LarsKue Jul 4, 2024
0e09cb0
add capability for configurators to deconfigure samples into dicts
LarsKue Jul 4, 2024
c5e71d1
change to logging
LarsKue Jul 4, 2024
be47033
add most up to date two moons notebook
LarsKue Jul 4, 2024
649436c
Merge pull request #179 from Chase-Grajeda/benchmarks-refactor
stefanradev93 Jul 5, 2024
ff35ca6
Merge pull request #176 from Chase-Grajeda/loss-progress-tests
stefanradev93 Jul 5, 2024
3753bf1
Merge pull request #177 from Chase-Grajeda/fix-notebook-lint-failures
stefanradev93 Jul 5, 2024
dbc5222
Added basic unit tests (#178)
Chase-Grajeda Jul 5, 2024
4b2a5ea
Move NormalSimulator into test utils
LarsKue Jul 5, 2024
7b6e889
Move NormalSimulator into test utils
LarsKue Jul 5, 2024
325e629
Merge remote-tracking branch 'origin/streamlined-backend' into stream…
LarsKue Jul 5, 2024
8c83c49
add comment
LarsKue Jul 5, 2024
11fd17e
change signature of filter_kwargs
LarsKue Jul 5, 2024
df7d10e
improve dataset pickle test
LarsKue Jul 5, 2024
0ecb7d3
add stricter structure to summary network
LarsKue Jul 5, 2024
e3a94bc
revert autoshaping samples in inference network for now
LarsKue Jul 5, 2024
f690516
clean up
LarsKue Jul 5, 2024
4ee1aa8
update two moons notebooks
LarsKue Jul 5, 2024
4aac652
drop summary conditions, add deconfiguration for sampling
LarsKue Jul 5, 2024
3855cb2
revert making models too big for workflows
LarsKue Jul 5, 2024
6033a67
Inherited simulator
Chase-Grajeda Jul 5, 2024
cc6eafe
Two Moons and VL classes
Chase-Grajeda Jul 5, 2024
1eb03d6
fix default width of resnet
LarsKue Jul 7, 2024
ec15254
improve definition of Tensor type
LarsKue Jul 8, 2024
e9f8a16
fix deconfigure for default configurator
LarsKue Jul 8, 2024
233534b
re-add numpy convenience to sampling and log_prob
LarsKue Jul 8, 2024
b8368da
fix random sampling for JAX
LarsKue Jul 8, 2024
3b02ec8
add simulator.rejection_sample()
LarsKue Jul 8, 2024
426a275
update two moons example notebook with plots and rejection sampling
LarsKue Jul 8, 2024
9f358d4
fix Flow Matching
LarsKue Jul 8, 2024
14b0dea
turn off torch autograd by default for consistency with other backends
LarsKue Jul 8, 2024
2274fba
update example two moons notebook
LarsKue Jul 8, 2024
4fc3d37
fix type hints for datasets
LarsKue Jul 9, 2024
1bf3a03
fix optimal transport matching parameters for flow matching
LarsKue Jul 9, 2024
660b39c
extend flow matching to multidim
LarsKue Jul 9, 2024
27642d2
add more tensor utils
LarsKue Jul 9, 2024
5986816
add non-log-stabilized version of sinkhorn knopp, which has much bett…
LarsKue Jul 9, 2024
6c8d1a1
update two moons notebook to reflect changes
LarsKue Jul 9, 2024
629712a
fix syntax error expand_right for python 3.10
LarsKue Jul 9, 2024
644b107
update keras requirements
LarsKue Jul 9, 2024
9860424
Add option for controling seed generator
stefanradev93 Jul 9, 2024
3ea83fc
Add back conditional sample for repeated tensors
stefanradev93 Jul 9, 2024
de1e6a8
Add sample shape clarification
stefanradev93 Jul 9, 2024
d585c4d
Switch to expand_tile
stefanradev93 Jul 9, 2024
122019b
improve error catching for automatic building
LarsKue Jul 9, 2024
da7bfc3
fix flow matching for most backend configs
LarsKue Jul 9, 2024
00a3725
add extra sample size to simulator rejection_sample
LarsKue Jul 9, 2024
0304ba4
Merge branch 'streamlined-backend' of https://github.com/stefanradev9…
stefanradev93 Jul 9, 2024
b2cdc00
Added remaining classes
Chase-Grajeda Jul 9, 2024
9c6216e
Merge pull request #180 from Chase-Grajeda/benchmarks-refactor
stefanradev93 Jul 10, 2024
923d55a
Merge branch 'streamlined-backend' of https://github.com/stefanradev9…
stefanradev93 Jul 10, 2024
b1160a6
Sample with correct IO structure and testbed notebook
stefanradev93 Jul 10, 2024
de87d71
Add sample utilities and new settings
stefanradev93 Jul 10, 2024
6b490e6
fix optimal transport for tensorflow tracing
LarsKue Jul 10, 2024
5682167
Merge remote-tracking branch 'origin/streamlined-backend' into stream…
LarsKue Jul 10, 2024
f859c00
Ensure 3D sampling works
stefanradev93 Jul 10, 2024
2f2ea08
fix mmd for jax
LarsKue Jul 10, 2024
2ffb27c
Merge remote-tracking branch 'origin/streamlined-backend' into stream…
LarsKue Jul 10, 2024
f5e91fe
only set mp start method to spawn for torch backend
LarsKue Jul 10, 2024
d392bad
add primitive diagnostic as preview
LarsKue Jul 10, 2024
1026066
build networks without running self.call
LarsKue Jul 10, 2024
3dd3824
explicit return value
LarsKue Jul 10, 2024
796d34c
optimize tests
LarsKue Jul 10, 2024
0fbd131
update keras dependency in pyproject.toml
LarsKue Jul 10, 2024
75e6cbb
remove coverage from tox tests
LarsKue Jul 10, 2024
ad54660
Propagate kwargs
stefanradev93 Jul 10, 2024
78074bf
Propagate kwargs to velocity
stefanradev93 Jul 10, 2024
00a123a
Merge branch 'streamlined-backend' of https://github.com/stefanradev9…
stefanradev93 Jul 10, 2024
d8428c8
Equalize defaults
stefanradev93 Jul 10, 2024
4b629e4
add compute_output_shape to mlp
LarsKue Jul 11, 2024
85073f1
Add compute_shape
stefanradev93 Jul 11, 2024
9ed43e8
Retire resnet
stefanradev93 Jul 11, 2024
994b984
Change order of methods
stefanradev93 Jul 11, 2024
caf5b0f
fix squeeze for sinkhorn log
LarsKue Jul 11, 2024
3f08880
Merge remote-tracking branch 'origin/streamlined-backend' into stream…
LarsKue Jul 11, 2024
5213c6b
Remove autodetection of is_batched and is_numpy
LarsKue Jul 11, 2024
1a85554
Add consistency
stefanradev93 Jul 11, 2024
0919762
revert to building with self.call
LarsKue Jul 11, 2024
215b12e
improve filter_kwargs
LarsKue Jul 11, 2024
e27734f
Merge branch 'streamlined-backend' of https://github.com/stefanradev9…
stefanradev93 Jul 12, 2024
3267cd3
potential fix for circular import
LarsKue Jul 15, 2024
df2dc94
make implementation of lambda simulator more procedural
LarsKue Jul 15, 2024
a196c7f
use keras.ops.cast
LarsKue Jul 15, 2024
6a91227
remove passing networks by class (not serializable)
LarsKue Jul 15, 2024
01493aa
re-add convert_args and convert_kwargs to utils imports
LarsKue Jul 15, 2024
373fffc
adjust tests to use changes for sequential and lambda simulator
LarsKue Jul 15, 2024
970679e
clean up tests
LarsKue Jul 15, 2024
f3e093a
globalize more fixtures
LarsKue Jul 15, 2024
942044d
Add minimal docs, fix base class
LarsKue Jul 15, 2024
4968d75
Add docs
LarsKue Jul 15, 2024
c8b76e3
Fix base class and build methods
LarsKue Jul 15, 2024
b908c91
fix summary networks
LarsKue Jul 15, 2024
ab635f7
allow and change default base distribution to None
LarsKue Jul 16, 2024
a14cfff
simplify Tensor type definition to allow better type inference for se…
LarsKue Jul 17, 2024
ffffdb2
current wip state
LarsKue Jul 17, 2024
0503954
configurator -> collate_fn
LarsKue Jul 17, 2024
2593f91
reorder dict_utils
LarsKue Jul 17, 2024
b4afea0
hacky fix for approximator.sample
LarsKue Jul 17, 2024
4054f2c
post-discussion state
LarsKue Jul 18, 2024
0c32c71
move into approximators
LarsKue Jul 19, 2024
e072dc1
redesign configurators
LarsKue Jul 19, 2024
af90266
improve setup and logging
LarsKue Jul 19, 2024
f8dfd4b
improve simulators
LarsKue Jul 19, 2024
bc80df5
add configurators to datasets
LarsKue Jul 19, 2024
c4cf8d2
slight adjustment to flow matching
LarsKue Jul 19, 2024
9816a2f
preliminary adjustments to tests (WIP)
LarsKue Jul 19, 2024
6c7e8bf
WIP state example
LarsKue Jul 19, 2024
9f19c1a
fix jax logging
LarsKue Jul 22, 2024
4589cfe
switch to using dicts as compute_metrics data input
LarsKue Jul 22, 2024
597cd43
Create cif.ipynb
Chase-Grajeda Jul 22, 2024
db49c15
Added class definition
Chase-Grajeda Jul 23, 2024
6ebe8ea
use bayesflow logger instead of root logger
LarsKue Jul 23, 2024
417f48d
unify backend approximators for shared behavior
LarsKue Jul 23, 2024
9adf83d
better type hints
LarsKue Jul 23, 2024
f490ff5
modularize example
LarsKue Jul 23, 2024
0665b97
fix unbuilt inference network compute_metrics
LarsKue Jul 23, 2024
43701e9
fix continuous approximator for summary_network=None
LarsKue Jul 23, 2024
a4fa71e
Fixed sampling bug
Chase-Grajeda Jul 23, 2024
4fdd95c
Merge branch 'streamlined-backend' into integrators-class
Chase-Grajeda Jul 23, 2024
0cc96d0
introduce memory budget for automatic batch sizing
LarsKue Jul 25, 2024
a944141
revert to using an id list instead of set because some tensor types a…
LarsKue Jul 25, 2024
745c5d4
fix docs
LarsKue Jul 25, 2024
e82043e
ask for forgiveness instead of permission
LarsKue Jul 25, 2024
0b7fc67
reduce functionality of BackendApproximator
LarsKue Jul 25, 2024
5cc1f2c
modularize automatic dataset building
LarsKue Jul 25, 2024
79fa952
improve definition of Tensor type
LarsKue Jul 26, 2024
9099413
make bound available internally as BackendTensor
LarsKue Jul 26, 2024
232ac6c
adjust dispatch to be based on BackendTensor
LarsKue Jul 26, 2024
3f110ec
update size_of for any nested structure of tensors
LarsKue Jul 26, 2024
1693243
move finding batch size and memory budget into utils
LarsKue Jul 26, 2024
d9109b1
improve error message for incorrect memory budget format
LarsKue Jul 29, 2024
9810587
improve error catching in Simulator.rejection_sample
LarsKue Jul 29, 2024
7a785d8
state dump
LarsKue Jul 30, 2024
167bfa4
state dump
LarsKue Jul 30, 2024
a976a25
Merge remote-tracking branch 'origin/model-comparison' into model-com…
LarsKue Jul 30, 2024
5afe352
concatenate_dicts -> tree_concatenate, stack_dicts -> tree_stack
LarsKue Jul 30, 2024
fca72a6
configurators -> data_adapters
LarsKue Jul 30, 2024
acf0327
Simulator now only generates numpy arrays by design
LarsKue Jul 30, 2024
ad11d4b
Completed model
Chase-Grajeda Aug 6, 2024
dc00722
Clean up
Chase-Grajeda Aug 6, 2024
66c1897
state dump
LarsKue Aug 7, 2024
2982d95
continue porting simulators to pure numpy
LarsKue Aug 7, 2024
d3e21b1
allow arbitrary keyword-arguments for approximator's compute_metrics
LarsKue Aug 7, 2024
bd0bdf8
mark flaky tests as such
LarsKue Aug 9, 2024
e5e43b8
reintroduce metrics to approximators
LarsKue Aug 9, 2024
f788ff5
fix data adapter serialization
LarsKue Aug 9, 2024
3ad4872
fix sample-based metrics in inference network
LarsKue Aug 9, 2024
1e6e5d7
modularize sample method of lambda simulators
LarsKue Aug 9, 2024
ef28225
reintroduce improved batched_call
LarsKue Aug 9, 2024
b29cae7
final fixes
LarsKue Aug 9, 2024
c5cdbd9
remove old example
LarsKue Aug 9, 2024
9796d01
Merge branch 'refs/heads/streamlined-backend' into model-comparison
LarsKue Aug 9, 2024
5582df8
add numpy version of optimal transport
LarsKue Aug 12, 2024
fda7768
rename batches_per_epoch -> num_batches for consistency
LarsKue Aug 13, 2024
5a0afe4
add numpy optimal transport
LarsKue Aug 13, 2024
362ce5b
fix size_of util for numpy arrays with non-numpy backend
LarsKue Aug 13, 2024
0380e17
add (maybe temporary) split_tensors utility for plotting
LarsKue Aug 13, 2024
30af1ee
make keys optional for configuration / deconfiguration in composite d…
LarsKue Aug 13, 2024
4649daa
rename batches_per_epoch -> num_batches, matching fda7768817ec28ebe9f…
LarsKue Aug 13, 2024
3553589
fix data adapter passing to super fit
LarsKue Aug 13, 2024
40d628a
reimplement sample and log prob
LarsKue Aug 13, 2024
b09d09f
update example (not working yet)
LarsKue Aug 13, 2024
41f91f3
Finished EulerIntegrator
Chase-Grajeda Aug 13, 2024
5c61054
fix dict comprehension bug in bf.networks.transformers.set_transforme…
marvinschmitt Aug 13, 2024
e6bdf83
fix missing rename for batches_per_epoch arg
LarsKue Aug 14, 2024
c3658a0
allow dropout=None in MLP
LarsKue Aug 14, 2024
4aebef6
fix configure order for concatenate keys data adapter
LarsKue Aug 14, 2024
013e7ae
fix flow matching data adapter
LarsKue Aug 14, 2024
bb657b7
improve building of approximators
LarsKue Aug 14, 2024
61447a1
ensure numpy v1
LarsKue Aug 14, 2024
329a830
make optimal transport optional
LarsKue Aug 14, 2024
f672dbf
improve logging message
LarsKue Aug 14, 2024
33c69d3
improve versioning
LarsKue Aug 14, 2024
d69c0ab
update two moons example
LarsKue Aug 14, 2024
0ae5d72
fix tests
LarsKue Aug 14, 2024
4660267
final fixes
LarsKue Aug 14, 2024
90b8757
Merge branch 'streamlined-backend' into model-comparison
LarsKue Aug 14, 2024
151b9d5
fix lint
LarsKue Aug 14, 2024
7c66f97
Merge pull request #184 from stefanradev93/model-comparison
LarsKue Aug 14, 2024
c226ea4
rename all occurrences of `register_keras_serializable` to `serializa…
LarsKue Aug 15, 2024
df61c9f
add missing tox dependency for flaky tests
LarsKue Aug 15, 2024
ae9a928
allow dropout=None in deep set
LarsKue Aug 16, 2024
954f92f
do not show summary loss if it is not set
LarsKue Aug 16, 2024
1381dd0
allow line too long in jupyter notebooks
LarsKue Aug 16, 2024
ab6cfce
add model comparison example
LarsKue Aug 16, 2024
cb35abb
Merge branch 'streamlined-backend' of https://github.com/stefanradev9…
stefanradev93 Aug 16, 2024
0d6d124
Merge branch 'streamlined-backend' of https://github.com/stefanradev9…
stefanradev93 Aug 16, 2024
5ab83c4
try ignoring jupyter notebooks completely in lint workflow for now
LarsKue Aug 16, 2024
72a10e8
Merge branch 'streamlined-backend' of https://github.com/stefanradev9…
stefanradev93 Aug 16, 2024
61fb9be
Moved integrators
Chase-Grajeda Aug 19, 2024
be27554
fix mmd for batch sizes n != m
LarsKue Aug 21, 2024
3b53701
revert previous fix but add better error message
LarsKue Aug 21, 2024
3511e10
improve parameter constraints for affine coupling transform
LarsKue Aug 22, 2024
699f53b
add callbacks module
LarsKue Aug 22, 2024
7361789
add gradient norm logging callback (works only for torch for now)
LarsKue Aug 22, 2024
f5cf69f
improve logging keys for tensorboard
LarsKue Aug 22, 2024
b083364
add MPS warning to two moons notebook
LarsKue Aug 22, 2024
4647fec
remove incorrect KL Divergence test, improve metric testing
LarsKue Aug 22, 2024
a8bec97
Add example for training and sampling with summary network and offlin…
LarsKue Aug 22, 2024
791a900
remove mmd batch size check because it breaks compiled backends
LarsKue Aug 23, 2024
6eb4c3d
Merge branch 'streamlined-backend' of https://github.com/stefanradev9…
stefanradev93 Aug 25, 2024
38baad2
Fix sample semantics
stefanradev93 Aug 25, 2024
31d1c03
Cover cases with no conditions
stefanradev93 Aug 26, 2024
3ca8905
add safety net for `sample` args
LarsKue Aug 26, 2024
137b78d
allow for scalar simulator return values even in batched contexts
LarsKue Aug 28, 2024
5c1ffec
fix off-by-one
LarsKue Aug 28, 2024
efac8eb
small improvements for simulators
LarsKue Aug 29, 2024
d08c244
add hierarchical simulator
LarsKue Aug 29, 2024
be7c666
adjust utils for better integration with numpy
LarsKue Aug 29, 2024
b11dd37
Merge branch 'streamlined-backend' into integrators-class
Chase-Grajeda Aug 29, 2024
f543987
Streamlined-backend changes
Chase-Grajeda Aug 30, 2024
b62d134
Added integrator selection
Chase-Grajeda Aug 30, 2024
230d094
small cleanup
LarsKue Aug 30, 2024
fa8899f
Clean up
Chase-Grajeda Aug 30, 2024
fa8374f
Kernel bug fix
Chase-Grajeda Aug 30, 2024
df94651
Merge branch 'streamlined-backend' into cif-base-implementation
Chase-Grajeda Aug 31, 2024
07964b3
Merge pull request #185 from Chase-Grajeda/integrators-class
stefanradev93 Aug 31, 2024
80ed60a
Merge pull request #182 from Chase-Grajeda/cif-base-implementation
stefanradev93 Aug 31, 2024
0137ce5
Generalize trace computation to N-D
stefanradev93 Sep 2, 2024
f0d659b
Generalize integrators to N-D
stefanradev93 Sep 2, 2024
e167ddd
Update summary network example
LarsKue Sep 9, 2024
e5a78c4
hotfix optimal transport flow matching with conditions
LarsKue Sep 9, 2024
4263829
improve optimal transport to allow auxiliary tensors to be permuted a…
LarsKue Sep 10, 2024
5fd3d78
add more utils
LarsKue Sep 12, 2024
6808ecf
use shifted_softplus in affine transform
LarsKue Sep 12, 2024
94dbecf
add common data adapter transforms
LarsKue Sep 12, 2024
7eb2010
allow using transforms in concatenate keys data adapter
LarsKue Sep 12, 2024
6df806f
allow passing transforms to build_data_adapter of approximators
LarsKue Sep 12, 2024
175f89d
update examples
LarsKue Sep 12, 2024
91d9b8b
improve tests for transforms
LarsKue Sep 13, 2024
a5c06a5
add convenience datasets for numpy and pickle
LarsKue Sep 13, 2024
65edbd1
refactor transforms for greater convenience
LarsKue Sep 16, 2024
ac2de8f
adjust example for transform refactor
LarsKue Sep 16, 2024
953b57d
Add ECDF band computation utility
stefanradev93 Sep 16, 2024
e376762
Simplify and fix bidirectional in lstnet
stefanradev93 Sep 16, 2024
70b1498
fix transforms for more-than-one parameter application
LarsKue Sep 17, 2024
0927a2d
fix transforms in tests
LarsKue Sep 17, 2024
d754ae2
remove log gradient norm callback for now
LarsKue Sep 17, 2024
e37fdfe
rename normalize -> standardize
LarsKue Sep 17, 2024
0712ef9
fix imports
LarsKue Sep 17, 2024
fb577e3
fix mean and std axes for standardize transform
LarsKue Sep 17, 2024
c038139
numpy hates lists
LarsKue Sep 17, 2024
fbda19c
Merge remote-tracking branch 'stefanradev93/dev' into streamlined-bac…
LarsKue Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docs.yml → .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# From https://github.com/eeholmes/readthedoc-test/blob/main/.github/workflows/docs_pages.yml
name: docs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Publish to PyPI.org
on:
release:
Expand Down
106 changes: 106 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@

name: Tests

on:
pull_request:
push:
branches:
- master
- dev
- streamlined-backend


jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yaml
python-version: "3.10"

- name: Show Environment Info
run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort

- name: Run Linter
run: |
ruff check --config pyproject.toml

- name: Run Formatter
run: |
ruff format --check --config pyproject.toml

test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11"]
backend: ["jax", "tensorflow", "torch"]
defaults:
run:
shell: bash -el {0}
env:
KERAS_BACKEND: ${{ matrix.backend }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yaml
python-version: ${{ matrix.python-version }}

- name: Install JAX
if: ${{ matrix.backend == 'jax' }}
run: |
pip install -U "jax[cpu]"
- name: Install NumPy
if: ${{ matrix.backend == 'numpy' }}
run: |
conda install numpy
- name: Install Tensorflow
if: ${{ matrix.backend == 'tensorflow' }}
run: |
pip install -U tensorflow
- name: Install PyTorch
if: ${{ matrix.backend == 'torch' }}
run: |
conda install pytorch torchvision torchaudio cpuonly -c pytorch

- name: Show Environment Info
run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort

- name: Run Tests
run: |
pytest

- name: Create Coverage Report
run: |
coverage xml

- name: Upload Coverage Reports to CodeCov
uses: codecov/codecov-action@v4
with:
# do not use the files attribute here, otherwise the reports are not merged correctly
token: ${{ secrets.CODECOV_TOKEN }}
31 changes: 0 additions & 31 deletions .github/workflows/tests.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ docs/
.tox

# MacOS
.DS_Store
.DS_Store
37 changes: 15 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,25 @@
# Automatically run before every commit via once running `pre-commit install`

repos:
- repo: https://github.com/psf/black
rev: 23.1.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.9
hooks:
- id: black
description: The uncompromising code formatter
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- id: isort
name: isort (cython)
types: [cython]
- id: isort
name: isort (pyi)
types: [pyi]
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.3
hooks:
- id: nbqa-black
- id: nbqa-pyupgrade
args: [--py36-plus]
- id: nbqa-isort
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
#- repo: https://github.com/nbQA-dev/nbQA
# rev: 1.6.3
# hooks:
# # Run ruff for jupyter notebooks.
# - id: nbqa-ruff
# args: [--ignore=E402] # E402: module level import not at top of file
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# A bunch of other pre-defined hooks.
- id: check-yaml
description: Check yaml files for parseable syntax
- id: check-added-large-files
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ preferred-citation:
type: article
url: "https://joss.theoj.org/papers/10.21105/joss.05702"
volume: 8
title: "BayesFlow: Amortized Bayesian Workflows With Neural Networks"
title: "BayesFlow: Amortized Bayesian Workflows With Neural Networks"
90 changes: 0 additions & 90 deletions CONTRIBUTING

This file was deleted.

Loading
Loading