bayesflow 2.0.2__tar.gz → 2.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bayesflow-2.0.2 → bayesflow-2.0.4}/PKG-INFO +117 -53
- {bayesflow-2.0.2 → bayesflow-2.0.4}/README.md +98 -37
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/__init__.py +3 -9
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/adapter.py +232 -14
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/__init__.py +7 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/as_set.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/as_time_series.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/broadcast.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/concatenate.py +35 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/constrain.py +30 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/convert_dtype.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/drop.py +4 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/elementwise_transform.py +4 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/expand_dims.py +5 -5
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/filter_transform.py +29 -3
- bayesflow-2.0.4/bayesflow/adapters/transforms/group.py +81 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/keep.py +4 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/log.py +10 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/map_transform.py +34 -13
- bayesflow-2.0.4/bayesflow/adapters/transforms/nan_to_num.py +93 -0
- bayesflow-2.0.4/bayesflow/adapters/transforms/nnpe.py +187 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/numpy_transform.py +4 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/one_hot.py +1 -1
- bayesflow-2.0.4/bayesflow/adapters/transforms/random_subsample.py +49 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/rename.py +4 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/scale.py +8 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/serializable_custom_transform.py +3 -4
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/shift.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/split.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/sqrt.py +7 -1
- bayesflow-2.0.4/bayesflow/adapters/transforms/squeeze.py +46 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/standardize.py +17 -1
- bayesflow-2.0.4/bayesflow/adapters/transforms/take.py +31 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/to_array.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/to_dict.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/transforms/transform.py +7 -1
- bayesflow-2.0.4/bayesflow/adapters/transforms/ungroup.py +83 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/approximators/__init__.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/approximators/approximator.py +9 -9
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/approximators/backend_approximators/backend_approximator.py +0 -2
- bayesflow-2.0.4/bayesflow/approximators/backend_approximators/jax_approximator.py +263 -0
- bayesflow-2.0.4/bayesflow/approximators/backend_approximators/tensorflow_approximator.py +141 -0
- bayesflow-2.0.4/bayesflow/approximators/backend_approximators/torch_approximator.py +151 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/approximators/continuous_approximator.py +252 -60
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/approximators/model_comparison_approximator.py +193 -51
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/approximators/point_approximator.py +49 -30
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/datasets/__init__.py +1 -2
- bayesflow-2.0.4/bayesflow/datasets/disk_dataset.py +127 -0
- bayesflow-2.0.4/bayesflow/datasets/offline_dataset.py +148 -0
- bayesflow-2.0.4/bayesflow/datasets/online_dataset.py +100 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/__init__.py +7 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/metrics/__init__.py +1 -0
- bayesflow-2.0.4/bayesflow/diagnostics/metrics/model_misspecification.py +155 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/loss.py +1 -4
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/pairs_posterior.py +29 -9
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/pairs_samples.py +55 -23
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/distributions/__init__.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/distributions/diagonal_normal.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/distributions/diagonal_student_t.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/distributions/distribution.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/distributions/mixture.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/__init__.py +2 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/cif/cif.py +4 -3
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/cif/conditional_gaussian.py +3 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/continuous_time_consistency_model.py +3 -11
- bayesflow-2.0.4/bayesflow/experimental/diffusion_model/__init__.py +9 -0
- bayesflow-2.0.4/bayesflow/experimental/diffusion_model/diffusion_model.py +500 -0
- bayesflow-2.0.4/bayesflow/experimental/diffusion_model/dispatch.py +35 -0
- bayesflow-2.0.4/bayesflow/experimental/diffusion_model/schedules/__init__.py +3 -0
- bayesflow-2.0.4/bayesflow/experimental/diffusion_model/schedules/cosine_noise_schedule.py +96 -0
- bayesflow-2.0.4/bayesflow/experimental/diffusion_model/schedules/edm_noise_schedule.py +113 -0
- bayesflow-2.0.4/bayesflow/experimental/diffusion_model/schedules/noise_schedule.py +192 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/free_form_flow/free_form_flow.py +8 -16
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/resnet/dense_resnet.py +2 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/resnet/double_conv.py +2 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/resnet/double_linear.py +2 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/resnet/resnet.py +2 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/links/__init__.py +1 -0
- bayesflow-2.0.4/bayesflow/links/cholesky_factor.py +41 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/links/ordered.py +2 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/links/ordered_quantiles.py +2 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/links/positive_definite.py +10 -3
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/metrics/__init__.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/metrics/functional/maximum_mean_discrepancy.py +9 -1
- bayesflow-2.0.4/bayesflow/metrics/maximum_mean_discrepancy.py +36 -0
- bayesflow-2.0.4/bayesflow/metrics/root_mean_squard_error.py +20 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/__init__.py +5 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/consistency_models/consistency_model.py +3 -12
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/actnorm.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/coupling_flow.py +5 -5
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/couplings/dual_coupling.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/couplings/single_coupling.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/permutations/fixed_permutation.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/permutations/orthogonal.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/permutations/random.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/permutations/swap.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/transforms/affine_transform.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/transforms/spline_transform.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/deep_set/deep_set.py +4 -4
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/deep_set/equivariant_layer.py +6 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/deep_set/invariant_layer.py +5 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/embeddings/fourier_embedding.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/embeddings/recurrent_embedding.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/embeddings/time2vec.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/flow_matching/flow_matching.py +5 -14
- bayesflow-2.0.4/bayesflow/networks/fusion_network/__init__.py +1 -0
- bayesflow-2.0.4/bayesflow/networks/fusion_network/fusion_network.py +125 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/mlp/mlp.py +12 -32
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/point_inference_network.py +6 -10
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/residual/residual.py +4 -2
- bayesflow-2.0.4/bayesflow/networks/sequential/__init__.py +1 -0
- bayesflow-2.0.4/bayesflow/networks/sequential/sequential.py +88 -0
- bayesflow-2.0.4/bayesflow/networks/standardization/__init__.py +1 -0
- bayesflow-2.0.4/bayesflow/networks/standardization/standardization.py +172 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/time_series_network/skip_recurrent.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/time_series_network/time_series_network.py +2 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/transformers/fusion_transformer.py +3 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/transformers/isab.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/transformers/mab.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/transformers/pma.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/transformers/sab.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/transformers/set_transformer.py +2 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/transformers/time_series_transformer.py +4 -4
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/scores/mean_score.py +2 -3
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/scores/median_score.py +2 -3
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/scores/multivariate_normal_score.py +37 -21
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/scores/normed_difference_score.py +2 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/scores/parametric_distribution_score.py +2 -3
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/scores/quantile_score.py +2 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/scores/scoring_rule.py +21 -18
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/model_comparison_simulator.py +76 -3
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/simulator.py +31 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/__init__.py +7 -6
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/decorators.py +1 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dispatch/find_inference_network.py +7 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dispatch/find_summary_network.py +7 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/integrate.py +106 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/plot_utils.py +67 -5
- bayesflow-2.0.4/bayesflow/utils/serialization.py +176 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/tensor_utils.py +77 -43
- bayesflow-2.0.4/bayesflow/utils/tree.py +14 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/workflows/basic_workflow.py +58 -17
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/wrappers/mamba/mamba.py +2 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/wrappers/mamba/mamba_block.py +1 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow.egg-info/PKG-INFO +117 -53
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow.egg-info/SOURCES.txt +46 -2
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow.egg-info/requires.txt +16 -14
- {bayesflow-2.0.2 → bayesflow-2.0.4}/pyproject.toml +20 -16
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_adapters/conftest.py +44 -4
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_adapters/test_adapters.py +164 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_approximators/conftest.py +44 -2
- bayesflow-2.0.4/tests/test_approximators/test_approximator_standardization/conftest.py +61 -0
- bayesflow-2.0.4/tests/test_approximators/test_approximator_standardization/test_approximator_standardization.py +17 -0
- bayesflow-2.0.4/tests/test_approximators/test_build.py +17 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_approximators/test_estimate.py +2 -1
- bayesflow-2.0.4/tests/test_approximators/test_log_prob.py +20 -0
- bayesflow-2.0.4/tests/test_approximators/test_model_comparison_approximator/conftest.py +82 -0
- bayesflow-2.0.4/tests/test_approximators/test_model_comparison_approximator/test_model_comparison_approximator.py +82 -0
- bayesflow-2.0.4/tests/test_approximators/test_point_approximators/test_log_prob.py +30 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_approximators/test_point_approximators/test_sample.py +3 -7
- bayesflow-2.0.4/tests/test_approximators/test_sample.py +20 -0
- bayesflow-2.0.4/tests/test_approximators/test_save_and_load.py +14 -0
- bayesflow-2.0.4/tests/test_approximators/test_summarize.py +23 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_diagnostics/conftest.py +14 -0
- bayesflow-2.0.4/tests/test_diagnostics/test_diagnostics_metrics.py +369 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_examples/test_examples.py +6 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_links/conftest.py +4 -4
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_links/test_links.py +13 -14
- bayesflow-2.0.4/tests/test_metrics/conftest.py +20 -0
- bayesflow-2.0.4/tests/test_metrics/test_metrics.py +12 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/conftest.py +115 -1
- bayesflow-2.0.4/tests/test_networks/test_diffusion_model/conftest.py +23 -0
- bayesflow-2.0.4/tests/test_networks/test_diffusion_model/test_diffusion_model.py +25 -0
- bayesflow-2.0.4/tests/test_networks/test_fusion_network/conftest.py +17 -0
- bayesflow-2.0.4/tests/test_networks/test_fusion_network/test_fusion_network.py +104 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/test_inference_networks.py +14 -2
- bayesflow-2.0.4/tests/test_networks/test_mlp/conftest.py +28 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/test_mlp/test_mlp.py +2 -2
- bayesflow-2.0.4/tests/test_networks/test_standardization.py +178 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_simulators/conftest.py +50 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_simulators/test_simulators.py +42 -0
- bayesflow-2.0.4/tests/test_two_moons/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_two_moons/test_two_moons.py +7 -2
- bayesflow-2.0.4/tests/test_utils/__init__.py +0 -0
- bayesflow-2.0.4/tests/test_utils/conftest.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_utils/test_dispatch.py +130 -1
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_utils/test_serialize_deserialize.py +2 -2
- bayesflow-2.0.4/tests/test_workflows/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_workflows/conftest.py +42 -1
- bayesflow-2.0.4/tests/test_workflows/test_basic_workflow.py +67 -0
- bayesflow-2.0.4/tests/test_wrappers/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/utils/__init__.py +1 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/utils/assertions.py +6 -1
- bayesflow-2.0.4/tests/utils/networks.py +8 -0
- bayesflow-2.0.2/bayesflow/approximators/backend_approximators/jax_approximator.py +0 -96
- bayesflow-2.0.2/bayesflow/approximators/backend_approximators/numpy_approximator.py +0 -18
- bayesflow-2.0.2/bayesflow/approximators/backend_approximators/tensorflow_approximator.py +0 -29
- bayesflow-2.0.2/bayesflow/approximators/backend_approximators/torch_approximator.py +0 -37
- bayesflow-2.0.2/bayesflow/datasets/disk_dataset.py +0 -72
- bayesflow-2.0.2/bayesflow/datasets/offline_dataset.py +0 -81
- bayesflow-2.0.2/bayesflow/datasets/online_dataset.py +0 -41
- bayesflow-2.0.2/bayesflow/datasets/rounds_dataset.py +0 -66
- bayesflow-2.0.2/bayesflow/metrics/maximum_mean_discrepancy.py +0 -26
- bayesflow-2.0.2/bayesflow/metrics/root_mean_squard_error.py +0 -12
- bayesflow-2.0.2/bayesflow/utils/serialization.py +0 -141
- bayesflow-2.0.2/tests/test_diagnostics/test_diagnostics_metrics.py +0 -81
- bayesflow-2.0.2/tests/test_networks/test_mlp/conftest.py +0 -13
- bayesflow-2.0.2/tests/test_workflows/test_basic_workflow.py +0 -34
- {bayesflow-2.0.2 → bayesflow-2.0.4}/LICENSE +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/adapters/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/approximators/backend_approximators/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/metrics/calibration_error.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/metrics/classifier_two_sample_test.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/metrics/expected_calibration_error.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/metrics/posterior_contraction.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/metrics/root_mean_squared_error.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/calibration_ecdf.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/calibration_ecdf_from_quantiles.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/calibration_histogram.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/mc_calibration.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/mc_confusion_matrix.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/mmd_hypothesis_test.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/recovery.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/recovery_from_estimates.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/diagnostics/plots/z_score_contraction.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/cif/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/free_form_flow/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/experimental/resnet/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/metrics/functional/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/metrics/functional/kernels.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/metrics/functional/root_mean_squared_error.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/consistency_models/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/couplings/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/invertible_layer.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/permutations/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/transforms/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/transforms/_rational_quadratic.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/coupling_flow/transforms/transform.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/deep_set/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/embeddings/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/flow_matching/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/inference_network.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/mlp/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/residual/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/summary_network.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/time_series_network/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/networks/transformers/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/scores/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/benchmark_simulator.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/bernoulli_glm.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/bernoulli_glm_raw.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/gaussian_linear.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/gaussian_linear_uniform.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/gaussian_mixture.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/inverse_kinematics.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/lotka_volterra.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/sir.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/slcp.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/slcp_distractors.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/benchmark_simulators/two_moons.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/hierarchical_simulator.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/lambda_simulator.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/make_simulator.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/simulators/sequential_simulator.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/types/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/types/shape.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/types/tensor.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/_docs/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/_docs/_populate_all.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/callbacks.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/classification/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/classification/calibration_curve.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/classification/confusion_matrix.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/context_managers.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/devices.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dict_utils.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dispatch/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dispatch/find_cost.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dispatch/find_distribution.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dispatch/find_network.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dispatch/find_permutation.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dispatch/find_pooling.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/dispatch/find_recurrent_net.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/ecdf/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/ecdf/minimal_coverage_probs.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/ecdf/pointwise_ecdf_bands.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/ecdf/ranks.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/ecdf/simultaneous_ecdf_bands.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/empty.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/exceptions/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/exceptions/shape_error.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/functional.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/git.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/hparam_utils.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/io.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/jacobian/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/jacobian/jacobian.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/jacobian/jacobian_trace.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/jacobian/jvp.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/jacobian/vjp.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/keras_utils.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/logging.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/numpy_utils.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/optimal_transport/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/optimal_transport/euclidean.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/optimal_transport/log_sinkhorn.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/optimal_transport/optimal_transport.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/optimal_transport/sinkhorn.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/utils/validators.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/workflows/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/workflows/workflow.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/wrappers/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow/wrappers/mamba/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow.egg-info/dependency_links.txt +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/bayesflow.egg-info/top_level.txt +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/docsrc/generate-redirects.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/docsrc/poly.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/docsrc/polyversion_patches.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/docsrc/pre-build.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/docsrc/source/conf.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/docsrc/source/sphinxext/adapt_autodoc_docstring.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/docsrc/source/sphinxext/override_pst_pagetoc.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/setup.cfg +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/conftest.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_adapters/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_approximators/__init__.py +0 -0
- {bayesflow-2.0.2/tests/test_approximators/test_point_approximators → bayesflow-2.0.4/tests/test_approximators/test_approximator_standardization}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_approximators/test_fit.py +0 -0
- {bayesflow-2.0.2/tests/test_datasets → bayesflow-2.0.4/tests/test_approximators/test_model_comparison_approximator}/__init__.py +0 -0
- {bayesflow-2.0.2/tests/test_diagnostics → bayesflow-2.0.4/tests/test_approximators/test_point_approximators}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_approximators/test_point_approximators/conftest.py +0 -0
- {bayesflow-2.0.2/tests/test_distributions → bayesflow-2.0.4/tests/test_datasets}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_datasets/conftest.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_datasets/test_datasets.py +0 -0
- {bayesflow-2.0.2/tests/test_examples → bayesflow-2.0.4/tests/test_diagnostics}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_diagnostics/test_diagnostics_plots.py +0 -0
- {bayesflow-2.0.2/tests/test_links → bayesflow-2.0.4/tests/test_distributions}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_distributions/conftest.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_distributions/test_distributions.py +0 -0
- {bayesflow-2.0.2/tests/test_networks → bayesflow-2.0.4/tests/test_examples}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_examples/conftest.py +0 -0
- {bayesflow-2.0.2/tests/test_networks/test_coupling_flow → bayesflow-2.0.4/tests/test_links}/__init__.py +0 -0
- {bayesflow-2.0.2/tests/test_networks/test_mlp → bayesflow-2.0.4/tests/test_metrics}/__init__.py +0 -0
- {bayesflow-2.0.2/tests/test_networks/test_point_inference_network → bayesflow-2.0.4/tests/test_networks}/__init__.py +0 -0
- {bayesflow-2.0.2/tests/test_scores → bayesflow-2.0.4/tests/test_networks/test_coupling_flow}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/test_coupling_flow/conftest.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/test_coupling_flow/test_invertible_layers.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/test_coupling_flow/test_permutations.py +0 -0
- {bayesflow-2.0.2/tests/test_simulators → bayesflow-2.0.4/tests/test_networks/test_diffusion_model}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/test_embeddings.py +0 -0
- {bayesflow-2.0.2/tests/test_two_moons → bayesflow-2.0.4/tests/test_networks/test_fusion_network}/__init__.py +0 -0
- {bayesflow-2.0.2/tests/test_utils → bayesflow-2.0.4/tests/test_networks/test_mlp}/__init__.py +0 -0
- {bayesflow-2.0.2/tests/test_workflows → bayesflow-2.0.4/tests/test_networks/test_point_inference_network}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/test_point_inference_network/conftest.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/test_point_inference_network/test_point_inference_network.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_networks/test_summary_networks.py +0 -0
- {bayesflow-2.0.2/tests/test_wrappers → bayesflow-2.0.4/tests/test_scores}/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_scores/conftest.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_scores/test_scores.py +0 -0
- /bayesflow-2.0.2/tests/test_utils/conftest.py → /bayesflow-2.0.4/tests/test_simulators/__init__.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_two_moons/conftest.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_utils/test_ecdf.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_utils/test_integrate.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_utils/test_jacobian.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_utils/test_optimal_transport.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_wrappers/conftest.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/test_wrappers/test_mamba.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/utils/callbacks.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/utils/check_combinations.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/utils/jupyter.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/utils/normal_simulator.py +0 -0
- {bayesflow-2.0.2 → bayesflow-2.0.4}/tests/utils/ops.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bayesflow
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.4
|
|
4
4
|
Summary: Amortizing Bayesian Inference With Neural Networks
|
|
5
5
|
Author: The BayesFlow Team
|
|
6
6
|
License: MIT License
|
|
@@ -34,8 +34,9 @@ Classifier: Programming Language :: Python :: 3
|
|
|
34
34
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
35
35
|
Classifier: Programming Language :: Python :: 3.10
|
|
36
36
|
Classifier: Programming Language :: Python :: 3.11
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
37
38
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
38
|
-
Requires-Python: <3.
|
|
39
|
+
Requires-Python: <3.13,>=3.10
|
|
39
40
|
Description-Content-Type: text/markdown
|
|
40
41
|
License-File: LICENSE
|
|
41
42
|
Requires-Dist: keras>=3.9
|
|
@@ -54,13 +55,14 @@ Requires-Dist: ipykernel; extra == "all"
|
|
|
54
55
|
Requires-Dist: pre-commit; extra == "all"
|
|
55
56
|
Requires-Dist: ruff; extra == "all"
|
|
56
57
|
Requires-Dist: tox; extra == "all"
|
|
57
|
-
Requires-Dist: myst-nb; extra == "all"
|
|
58
|
-
Requires-Dist: numpydoc; extra == "all"
|
|
59
|
-
Requires-Dist: pydata-sphinx-theme; extra == "all"
|
|
60
|
-
Requires-Dist: sphinx; extra == "all"
|
|
61
|
-
Requires-Dist: sphinx-polyversion
|
|
62
|
-
Requires-Dist: sphinx_design; extra == "all"
|
|
63
|
-
Requires-Dist: sphinxcontrib-bibtex; extra == "all"
|
|
58
|
+
Requires-Dist: myst-nb~=1.2; extra == "all"
|
|
59
|
+
Requires-Dist: numpydoc~=1.8; extra == "all"
|
|
60
|
+
Requires-Dist: pydata-sphinx-theme~=0.16; extra == "all"
|
|
61
|
+
Requires-Dist: sphinx~=8.1.3; extra == "all"
|
|
62
|
+
Requires-Dist: sphinx-polyversion==1.1; extra == "all"
|
|
63
|
+
Requires-Dist: sphinx_design~=0.6; extra == "all"
|
|
64
|
+
Requires-Dist: sphinxcontrib-bibtex~=2.6; extra == "all"
|
|
65
|
+
Requires-Dist: snowballstemmer~=2.2.0; extra == "all"
|
|
64
66
|
Requires-Dist: pytest; extra == "all"
|
|
65
67
|
Requires-Dist: pytest-cov; extra == "all"
|
|
66
68
|
Requires-Dist: pytest-rerunfailures; extra == "all"
|
|
@@ -72,13 +74,14 @@ Requires-Dist: pre-commit; extra == "dev"
|
|
|
72
74
|
Requires-Dist: ruff; extra == "dev"
|
|
73
75
|
Requires-Dist: tox; extra == "dev"
|
|
74
76
|
Provides-Extra: docs
|
|
75
|
-
Requires-Dist: myst-nb; extra == "docs"
|
|
76
|
-
Requires-Dist: numpydoc; extra == "docs"
|
|
77
|
-
Requires-Dist: pydata-sphinx-theme; extra == "docs"
|
|
78
|
-
Requires-Dist: sphinx; extra == "docs"
|
|
79
|
-
Requires-Dist: sphinx-polyversion
|
|
80
|
-
Requires-Dist: sphinx_design; extra == "docs"
|
|
81
|
-
Requires-Dist: sphinxcontrib-bibtex; extra == "docs"
|
|
77
|
+
Requires-Dist: myst-nb~=1.2; extra == "docs"
|
|
78
|
+
Requires-Dist: numpydoc~=1.8; extra == "docs"
|
|
79
|
+
Requires-Dist: pydata-sphinx-theme~=0.16; extra == "docs"
|
|
80
|
+
Requires-Dist: sphinx~=8.1.3; extra == "docs"
|
|
81
|
+
Requires-Dist: sphinx-polyversion==1.1; extra == "docs"
|
|
82
|
+
Requires-Dist: sphinx_design~=0.6; extra == "docs"
|
|
83
|
+
Requires-Dist: sphinxcontrib-bibtex~=2.6; extra == "docs"
|
|
84
|
+
Requires-Dist: snowballstemmer~=2.2.0; extra == "docs"
|
|
82
85
|
Provides-Extra: test
|
|
83
86
|
Requires-Dist: nbconvert; extra == "test"
|
|
84
87
|
Requires-Dist: ipython; extra == "test"
|
|
@@ -106,6 +109,25 @@ It provides users and researchers with:
|
|
|
106
109
|
BayesFlow (version 2+) is designed to be a flexible and efficient tool that enables rapid statistical inference
|
|
107
110
|
fueled by continuous progress in generative AI and Bayesian inference.
|
|
108
111
|
|
|
112
|
+
> [!IMPORTANT]
|
|
113
|
+
> As the 2.0 version introduced many new features, we still have to make breaking changes from time to time.
|
|
114
|
+
> This especially concerns **saving and loading** of models. We aim to stabilize this from the 2.1 release onwards.
|
|
115
|
+
> Until then, consider pinning your BayesFlow 2.0 installation to an exact version, or re-training after an update
|
|
116
|
+
> for less costly models.
|
|
117
|
+
|
|
118
|
+
## Important Note for Existing Users
|
|
119
|
+
|
|
120
|
+
You are currently looking at BayesFlow 2.0+, which is a complete rewrite of the library.
|
|
121
|
+
While it shares the same overall goals with the 1.x versions, the API is not compatible.
|
|
122
|
+
|
|
123
|
+
> [!CAUTION]
|
|
124
|
+
> A few features, most notably hierarchical models, have not been ported to BayesFlow 2.0+
|
|
125
|
+
> yet. We are working on those features and plan to add them soon. You can find the complete
|
|
126
|
+
> list in the [FAQ](#faq) below.
|
|
127
|
+
|
|
128
|
+
The [Moving from BayesFlow v1.1 to v2.0](examples/From_BayesFlow_1.1_to_2.0.ipynb) guide
|
|
129
|
+
highlights how concepts and classes relate between the two versions.
|
|
130
|
+
|
|
109
131
|
## Conceptual Overview
|
|
110
132
|
|
|
111
133
|
<div align="center">
|
|
@@ -121,45 +143,12 @@ neural networks for parameter estimation, model comparison, and model validation
|
|
|
121
143
|
when working with intractable simulators whose behavior as a whole is too
|
|
122
144
|
complex to be described analytically.
|
|
123
145
|
|
|
124
|
-
## Getting Started
|
|
125
|
-
|
|
126
|
-
Using the high-level interface is easy, as demonstrated by the minimal working example below:
|
|
127
|
-
|
|
128
|
-
```python
|
|
129
|
-
import bayesflow as bf
|
|
130
|
-
|
|
131
|
-
workflow = bf.BasicWorkflow(
|
|
132
|
-
inference_network=bf.networks.CouplingFlow(),
|
|
133
|
-
summary_network=bf.networks.TimeSeriesNetwork(),
|
|
134
|
-
inference_variables=["parameters"],
|
|
135
|
-
summary_variables=["observables"],
|
|
136
|
-
simulator=bf.simulators.SIR()
|
|
137
|
-
)
|
|
138
|
-
|
|
139
|
-
history = workflow.fit_online(epochs=15, batch_size=32, num_batches_per_epoch=200)
|
|
140
|
-
|
|
141
|
-
diagnostics = workflow.plot_default_diagnostics(test_data=300)
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
For an in-depth exposition, check out our walkthrough notebooks below.
|
|
145
|
-
|
|
146
|
-
1. [Linear regression starter example](examples/Linear_Regression_Starter.ipynb)
|
|
147
|
-
2. [From ABC to BayesFlow](examples/From_ABC_to_BayesFlow.ipynb)
|
|
148
|
-
3. [Two moons starter example](examples/Two_Moons_Starter.ipynb)
|
|
149
|
-
4. [Rapid iteration with point estimators](examples/Lotka_Volterra_Point_Estimation_and_Expert_Stats.ipynb)
|
|
150
|
-
5. [SIR model with custom summary network](examples/SIR_Posterior_Estimation.ipynb)
|
|
151
|
-
6. [Bayesian experimental design](examples/Bayesian_Experimental_Design.ipynb)
|
|
152
|
-
7. [Simple model comparison example](examples/One_Sample_TTest.ipynb)
|
|
153
|
-
8. [Moving from BayesFlow v1.1 to v2.0](examples/From_BayesFlow_1.1_to_2.0.ipynb)
|
|
154
|
-
|
|
155
|
-
More tutorials are always welcome! Please consider making a pull request if you have a cool application that you want to contribute.
|
|
156
|
-
|
|
157
146
|
## Install
|
|
158
147
|
|
|
159
|
-
You can install the latest stable version from PyPI using:
|
|
148
|
+
We currently support Python 3.10 to 3.12. You can install the latest stable version from PyPI using:
|
|
160
149
|
|
|
161
150
|
```bash
|
|
162
|
-
pip install bayesflow
|
|
151
|
+
pip install "bayesflow>=2.0"
|
|
163
152
|
```
|
|
164
153
|
|
|
165
154
|
If you want the latest features, you can install from source:
|
|
@@ -204,9 +193,47 @@ export KERAS_BACKEND=jax
|
|
|
204
193
|
|
|
205
194
|
This way, you also don't have to manually set the backend every time you are starting Python to use BayesFlow.
|
|
206
195
|
|
|
207
|
-
|
|
196
|
+
## Getting Started
|
|
208
197
|
|
|
209
|
-
|
|
198
|
+
Using the high-level interface is easy, as demonstrated by the minimal working example below:
|
|
199
|
+
|
|
200
|
+
```python
|
|
201
|
+
import bayesflow as bf
|
|
202
|
+
|
|
203
|
+
workflow = bf.BasicWorkflow(
|
|
204
|
+
inference_network=bf.networks.CouplingFlow(),
|
|
205
|
+
summary_network=bf.networks.TimeSeriesNetwork(),
|
|
206
|
+
inference_variables=["parameters"],
|
|
207
|
+
summary_variables=["observables"],
|
|
208
|
+
simulator=bf.simulators.SIR()
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
history = workflow.fit_online(epochs=15, batch_size=32, num_batches_per_epoch=200)
|
|
212
|
+
|
|
213
|
+
diagnostics = workflow.plot_default_diagnostics(test_data=300)
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
For an in-depth exposition, check out our expanding list of resources below.
|
|
217
|
+
|
|
218
|
+
### Books
|
|
219
|
+
|
|
220
|
+
Many examples from [Bayesian Cognitive Modeling: A Practical Course](https://bayesmodels.com/) by Lee & Wagenmakers (2013) in [BayesFlow](https://kucharssim.github.io/bayesflow-cognitive-modeling-book/).
|
|
221
|
+
|
|
222
|
+
### Tutorial notebooks
|
|
223
|
+
|
|
224
|
+
1. [Linear regression starter example](examples/Linear_Regression_Starter.ipynb)
|
|
225
|
+
2. [From ABC to BayesFlow](examples/From_ABC_to_BayesFlow.ipynb)
|
|
226
|
+
3. [Two moons starter example](examples/Two_Moons_Starter.ipynb)
|
|
227
|
+
4. [Rapid iteration with point estimators](examples/Lotka_Volterra_Point_Estimation.ipynb)
|
|
228
|
+
5. [SIR model with custom summary network](examples/SIR_Posterior_Estimation.ipynb)
|
|
229
|
+
6. [Bayesian experimental design](examples/Bayesian_Experimental_Design.ipynb)
|
|
230
|
+
7. [Simple model comparison example](examples/One_Sample_TTest.ipynb)
|
|
231
|
+
8. [Likelihood estimation](examples/Likelihood_Estimation.ipynb)
|
|
232
|
+
9. [Moving from BayesFlow v1.1 to v2.0](examples/From_BayesFlow_1.1_to_2.0.ipynb)
|
|
233
|
+
|
|
234
|
+
More tutorials are always welcome! Please consider making a pull request if you have a cool application that you want to contribute.
|
|
235
|
+
|
|
236
|
+
## Contributing
|
|
210
237
|
|
|
211
238
|
If you want to contribute to BayesFlow, we recommend installing it from source, see [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
|
|
212
239
|
|
|
@@ -307,11 +334,48 @@ while the old version was based on TensorFlow.
|
|
|
307
334
|
|
|
308
335
|
-------------
|
|
309
336
|
|
|
337
|
+
**Question:**
|
|
338
|
+
Should I switch to BayesFlow 2.0+ now? Are there features that are still missing?
|
|
339
|
+
|
|
340
|
+
**Answer:**
|
|
341
|
+
In general, we recommend to switch, as the new version is easier to use and will continue
|
|
342
|
+
to receive improvements and new features. However, a few features are still missing, so you
|
|
343
|
+
might want to wait until everything you need has been ported to BayesFlow 2.0+.
|
|
344
|
+
|
|
345
|
+
Depending on your needs, you might not want to upgrade yet if one of the following applies:
|
|
346
|
+
|
|
347
|
+
- You have an ongoing project that uses BayesFlow 1.x, and you do not want to allocate
|
|
348
|
+
time for migrating it to the new API.
|
|
349
|
+
- You have already trained models in BayesFlow 1.x, that you do not want to re-train
|
|
350
|
+
with the new version. Loading models from version 1.x in version 2.0+ is not supported.
|
|
351
|
+
- You require a feature that was not ported to BayesFlow 2.0+ yet. To our knowledge,
|
|
352
|
+
this applies to:
|
|
353
|
+
* Two-level/Hierarchical models (planned for version 2.1): `TwoLevelGenerativeModel`, `TwoLevelPrior`.
|
|
354
|
+
* Sensitivity analysis (partially discontinued): functionality from the `bayesflow.sensitivity` module. This is still
|
|
355
|
+
possible, but we do no longer offer a special module for it. We plan to add a tutorial on this, see [#455](https://github.com/bayesflow-org/bayesflow/issues/455).
|
|
356
|
+
* MCMC (discontinued): The `bayesflow.mcmc` module. We are considering other options
|
|
357
|
+
to enable the use of BayesFlow in an MCMC setting.
|
|
358
|
+
* Networks: `EvidentialNetwork`.
|
|
359
|
+
* Model misspecification detection: MMD test in the summary space (see #384).
|
|
360
|
+
|
|
361
|
+
If you encounter any functionality that is missing and not listed here, please let us
|
|
362
|
+
know by opening an issue.
|
|
363
|
+
|
|
364
|
+
-------------
|
|
365
|
+
|
|
310
366
|
**Question:**
|
|
311
367
|
I still need the old BayesFlow for some of my projects. How can I install it?
|
|
312
368
|
|
|
313
369
|
**Answer:**
|
|
314
370
|
You can find and install the old Bayesflow version via the `stable-legacy` branch on GitHub.
|
|
371
|
+
The corresponding [documentation](https://bayesflow.org/stable-legacy/index.html) can be
|
|
372
|
+
accessed by selecting the "stable-legacy" entry in the version picker of the documentation.
|
|
373
|
+
|
|
374
|
+
You can also install the latest version of BayesFlow v1.x from PyPI using
|
|
375
|
+
|
|
376
|
+
```
|
|
377
|
+
pip install "bayesflow<2.0"
|
|
378
|
+
```
|
|
315
379
|
|
|
316
380
|
-------------
|
|
317
381
|
|
|
@@ -15,6 +15,25 @@ It provides users and researchers with:
|
|
|
15
15
|
BayesFlow (version 2+) is designed to be a flexible and efficient tool that enables rapid statistical inference
|
|
16
16
|
fueled by continuous progress in generative AI and Bayesian inference.
|
|
17
17
|
|
|
18
|
+
> [!IMPORTANT]
|
|
19
|
+
> As the 2.0 version introduced many new features, we still have to make breaking changes from time to time.
|
|
20
|
+
> This especially concerns **saving and loading** of models. We aim to stabilize this from the 2.1 release onwards.
|
|
21
|
+
> Until then, consider pinning your BayesFlow 2.0 installation to an exact version, or re-training after an update
|
|
22
|
+
> for less costly models.
|
|
23
|
+
|
|
24
|
+
## Important Note for Existing Users
|
|
25
|
+
|
|
26
|
+
You are currently looking at BayesFlow 2.0+, which is a complete rewrite of the library.
|
|
27
|
+
While it shares the same overall goals with the 1.x versions, the API is not compatible.
|
|
28
|
+
|
|
29
|
+
> [!CAUTION]
|
|
30
|
+
> A few features, most notably hierarchical models, have not been ported to BayesFlow 2.0+
|
|
31
|
+
> yet. We are working on those features and plan to add them soon. You can find the complete
|
|
32
|
+
> list in the [FAQ](#faq) below.
|
|
33
|
+
|
|
34
|
+
The [Moving from BayesFlow v1.1 to v2.0](examples/From_BayesFlow_1.1_to_2.0.ipynb) guide
|
|
35
|
+
highlights how concepts and classes relate between the two versions.
|
|
36
|
+
|
|
18
37
|
## Conceptual Overview
|
|
19
38
|
|
|
20
39
|
<div align="center">
|
|
@@ -30,45 +49,12 @@ neural networks for parameter estimation, model comparison, and model validation
|
|
|
30
49
|
when working with intractable simulators whose behavior as a whole is too
|
|
31
50
|
complex to be described analytically.
|
|
32
51
|
|
|
33
|
-
## Getting Started
|
|
34
|
-
|
|
35
|
-
Using the high-level interface is easy, as demonstrated by the minimal working example below:
|
|
36
|
-
|
|
37
|
-
```python
|
|
38
|
-
import bayesflow as bf
|
|
39
|
-
|
|
40
|
-
workflow = bf.BasicWorkflow(
|
|
41
|
-
inference_network=bf.networks.CouplingFlow(),
|
|
42
|
-
summary_network=bf.networks.TimeSeriesNetwork(),
|
|
43
|
-
inference_variables=["parameters"],
|
|
44
|
-
summary_variables=["observables"],
|
|
45
|
-
simulator=bf.simulators.SIR()
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
history = workflow.fit_online(epochs=15, batch_size=32, num_batches_per_epoch=200)
|
|
49
|
-
|
|
50
|
-
diagnostics = workflow.plot_default_diagnostics(test_data=300)
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
For an in-depth exposition, check out our walkthrough notebooks below.
|
|
54
|
-
|
|
55
|
-
1. [Linear regression starter example](examples/Linear_Regression_Starter.ipynb)
|
|
56
|
-
2. [From ABC to BayesFlow](examples/From_ABC_to_BayesFlow.ipynb)
|
|
57
|
-
3. [Two moons starter example](examples/Two_Moons_Starter.ipynb)
|
|
58
|
-
4. [Rapid iteration with point estimators](examples/Lotka_Volterra_Point_Estimation_and_Expert_Stats.ipynb)
|
|
59
|
-
5. [SIR model with custom summary network](examples/SIR_Posterior_Estimation.ipynb)
|
|
60
|
-
6. [Bayesian experimental design](examples/Bayesian_Experimental_Design.ipynb)
|
|
61
|
-
7. [Simple model comparison example](examples/One_Sample_TTest.ipynb)
|
|
62
|
-
8. [Moving from BayesFlow v1.1 to v2.0](examples/From_BayesFlow_1.1_to_2.0.ipynb)
|
|
63
|
-
|
|
64
|
-
More tutorials are always welcome! Please consider making a pull request if you have a cool application that you want to contribute.
|
|
65
|
-
|
|
66
52
|
## Install
|
|
67
53
|
|
|
68
|
-
You can install the latest stable version from PyPI using:
|
|
54
|
+
We currently support Python 3.10 to 3.12. You can install the latest stable version from PyPI using:
|
|
69
55
|
|
|
70
56
|
```bash
|
|
71
|
-
pip install bayesflow
|
|
57
|
+
pip install "bayesflow>=2.0"
|
|
72
58
|
```
|
|
73
59
|
|
|
74
60
|
If you want the latest features, you can install from source:
|
|
@@ -113,9 +99,47 @@ export KERAS_BACKEND=jax
|
|
|
113
99
|
|
|
114
100
|
This way, you also don't have to manually set the backend every time you are starting Python to use BayesFlow.
|
|
115
101
|
|
|
116
|
-
|
|
102
|
+
## Getting Started
|
|
117
103
|
|
|
118
|
-
|
|
104
|
+
Using the high-level interface is easy, as demonstrated by the minimal working example below:
|
|
105
|
+
|
|
106
|
+
```python
|
|
107
|
+
import bayesflow as bf
|
|
108
|
+
|
|
109
|
+
workflow = bf.BasicWorkflow(
|
|
110
|
+
inference_network=bf.networks.CouplingFlow(),
|
|
111
|
+
summary_network=bf.networks.TimeSeriesNetwork(),
|
|
112
|
+
inference_variables=["parameters"],
|
|
113
|
+
summary_variables=["observables"],
|
|
114
|
+
simulator=bf.simulators.SIR()
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
history = workflow.fit_online(epochs=15, batch_size=32, num_batches_per_epoch=200)
|
|
118
|
+
|
|
119
|
+
diagnostics = workflow.plot_default_diagnostics(test_data=300)
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
For an in-depth exposition, check out our expanding list of resources below.
|
|
123
|
+
|
|
124
|
+
### Books
|
|
125
|
+
|
|
126
|
+
Many examples from [Bayesian Cognitive Modeling: A Practical Course](https://bayesmodels.com/) by Lee & Wagenmakers (2013) in [BayesFlow](https://kucharssim.github.io/bayesflow-cognitive-modeling-book/).
|
|
127
|
+
|
|
128
|
+
### Tutorial notebooks
|
|
129
|
+
|
|
130
|
+
1. [Linear regression starter example](examples/Linear_Regression_Starter.ipynb)
|
|
131
|
+
2. [From ABC to BayesFlow](examples/From_ABC_to_BayesFlow.ipynb)
|
|
132
|
+
3. [Two moons starter example](examples/Two_Moons_Starter.ipynb)
|
|
133
|
+
4. [Rapid iteration with point estimators](examples/Lotka_Volterra_Point_Estimation.ipynb)
|
|
134
|
+
5. [SIR model with custom summary network](examples/SIR_Posterior_Estimation.ipynb)
|
|
135
|
+
6. [Bayesian experimental design](examples/Bayesian_Experimental_Design.ipynb)
|
|
136
|
+
7. [Simple model comparison example](examples/One_Sample_TTest.ipynb)
|
|
137
|
+
8. [Likelihood estimation](examples/Likelihood_Estimation.ipynb)
|
|
138
|
+
9. [Moving from BayesFlow v1.1 to v2.0](examples/From_BayesFlow_1.1_to_2.0.ipynb)
|
|
139
|
+
|
|
140
|
+
More tutorials are always welcome! Please consider making a pull request if you have a cool application that you want to contribute.
|
|
141
|
+
|
|
142
|
+
## Contributing
|
|
119
143
|
|
|
120
144
|
If you want to contribute to BayesFlow, we recommend installing it from source, see [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
|
|
121
145
|
|
|
@@ -216,11 +240,48 @@ while the old version was based on TensorFlow.
|
|
|
216
240
|
|
|
217
241
|
-------------
|
|
218
242
|
|
|
243
|
+
**Question:**
|
|
244
|
+
Should I switch to BayesFlow 2.0+ now? Are there features that are still missing?
|
|
245
|
+
|
|
246
|
+
**Answer:**
|
|
247
|
+
In general, we recommend to switch, as the new version is easier to use and will continue
|
|
248
|
+
to receive improvements and new features. However, a few features are still missing, so you
|
|
249
|
+
might want to wait until everything you need has been ported to BayesFlow 2.0+.
|
|
250
|
+
|
|
251
|
+
Depending on your needs, you might not want to upgrade yet if one of the following applies:
|
|
252
|
+
|
|
253
|
+
- You have an ongoing project that uses BayesFlow 1.x, and you do not want to allocate
|
|
254
|
+
time for migrating it to the new API.
|
|
255
|
+
- You have already trained models in BayesFlow 1.x, that you do not want to re-train
|
|
256
|
+
with the new version. Loading models from version 1.x in version 2.0+ is not supported.
|
|
257
|
+
- You require a feature that was not ported to BayesFlow 2.0+ yet. To our knowledge,
|
|
258
|
+
this applies to:
|
|
259
|
+
* Two-level/Hierarchical models (planned for version 2.1): `TwoLevelGenerativeModel`, `TwoLevelPrior`.
|
|
260
|
+
* Sensitivity analysis (partially discontinued): functionality from the `bayesflow.sensitivity` module. This is still
|
|
261
|
+
possible, but we do no longer offer a special module for it. We plan to add a tutorial on this, see [#455](https://github.com/bayesflow-org/bayesflow/issues/455).
|
|
262
|
+
* MCMC (discontinued): The `bayesflow.mcmc` module. We are considering other options
|
|
263
|
+
to enable the use of BayesFlow in an MCMC setting.
|
|
264
|
+
* Networks: `EvidentialNetwork`.
|
|
265
|
+
* Model misspecification detection: MMD test in the summary space (see #384).
|
|
266
|
+
|
|
267
|
+
If you encounter any functionality that is missing and not listed here, please let us
|
|
268
|
+
know by opening an issue.
|
|
269
|
+
|
|
270
|
+
-------------
|
|
271
|
+
|
|
219
272
|
**Question:**
|
|
220
273
|
I still need the old BayesFlow for some of my projects. How can I install it?
|
|
221
274
|
|
|
222
275
|
**Answer:**
|
|
223
276
|
You can find and install the old Bayesflow version via the `stable-legacy` branch on GitHub.
|
|
277
|
+
The corresponding [documentation](https://bayesflow.org/stable-legacy/index.html) can be
|
|
278
|
+
accessed by selecting the "stable-legacy" entry in the version picker of the documentation.
|
|
279
|
+
|
|
280
|
+
You can also install the latest version of BayesFlow v1.x from PyPI using
|
|
281
|
+
|
|
282
|
+
```
|
|
283
|
+
pip install "bayesflow<2.0"
|
|
284
|
+
```
|
|
224
285
|
|
|
225
286
|
-------------
|
|
226
287
|
|
|
@@ -50,17 +50,11 @@ def setup():
|
|
|
50
50
|
"in contexts where you need gradients (e.g. custom training loops)."
|
|
51
51
|
)
|
|
52
52
|
|
|
53
|
+
# dynamically add __version__ attribute
|
|
54
|
+
from importlib.metadata import version
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
try:
|
|
56
|
-
from importlib.metadata import version, PackageNotFoundError
|
|
56
|
+
globals()["__version__"] = version("bayesflow")
|
|
57
57
|
|
|
58
|
-
__version__ = version(__name__)
|
|
59
|
-
except PackageNotFoundError:
|
|
60
|
-
__version__ = "2.0.0"
|
|
61
|
-
finally:
|
|
62
|
-
del version
|
|
63
|
-
del PackageNotFoundError
|
|
64
58
|
|
|
65
59
|
# call and clean up namespace
|
|
66
60
|
setup()
|