Skip to content

Commit 5c5bc6b

Browse files
authored
Merge pull request #381 from bayesflow-org/populate-api-reference-landing-page
Populate API Reference landing page
2 parents 456b96d + d2afd05 commit 5c5bc6b

File tree

12 files changed

+55
-1
lines changed

12 files changed

+55
-1
lines changed

bayesflow/adapters/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
A collection of :py:class:`~bayesflow.adapters.Adapter` transforms, which tell BayesFlow how to interpret your
3+
:py:class:`~bayesflow.simulators.Simulator` output and plug it into neural networks for training and inference.
4+
"""
5+
16
from . import transforms
27
from .adapter import Adapter
38

bayesflow/approximators/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
A collection of :py:class:`~bayesflow.approximators.Approximator`\ s, which embody the inference task and the
3+
neural network components used to perform it.
4+
"""
5+
16
from .approximator import Approximator
27
from .continuous_approximator import ContinuousApproximator
38
from .point_approximator import PointApproximator

bayesflow/datasets/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
A collection of `keras.utils.PyDataset <https://keras.io/api/utils/python_utils/#pydataset-class>`__\ s, which
3+
wrap your data-generating process (i.e., your :py:class:`~bayesflow.simulators.Simulator`) and thus determine the
4+
effective training strategy (e.g., online or offline).
5+
"""
6+
17
from .offline_dataset import OfflineDataset
28
from .online_dataset import OnlineDataset
39
from .disk_dataset import DiskDataset

bayesflow/diagnostics/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
A collection of plotting utilities and metrics for evaluating trained :py:class:`~bayesflow.workflows.Workflow`\ s.
3+
"""
4+
15
from .metrics import root_mean_squared_error, calibration_error, posterior_contraction
26

37
from .plots import (

bayesflow/distributions/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
A collection of :py:class:`~bayesflow.distributions.Distribution`\ s,
3+
which represent the latent space for :py:class:`~bayesflow.networks.InferenceNetwork`\ s
4+
or the summary space of :py:class:`~bayesflow.networks.SummaryNetwork`\ s.
5+
"""
6+
17
from .distribution import Distribution
28
from .diagonal_normal import DiagonalNormal
39
from .diagonal_student_t import DiagonalStudentT

bayesflow/experimental/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Unstable or largely untested networks, proceed with caution.
3+
"""
4+
15
from .cif import CIF
26
from .continuous_time_consistency_model import ContinuousTimeConsistencyModel
37
from .free_form_flow import FreeFormFlow

bayesflow/metrics/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
A collection of `keras.Metric <https://keras.io/api/metrics/base_metric/#metric-class>`__\ s for evaluating the
3+
performance of models.
4+
"""
5+
16
from . import functional
27
from .maximum_mean_discrepancy import MaximumMeanDiscrepancy
38
from .root_mean_squard_error import RootMeanSquaredError

bayesflow/networks/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
A rich collection of neural network architectures for use in :py:class:`~bayesflow.approximators.Approximator`\ s.
3+
"""
4+
15
from .consistency_models import ConsistencyModel
26
from .coupling_flow import CouplingFlow
37
from .deep_set import DeepSet

bayesflow/simulators/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
This module provides :py:class:`~bayesflow.simulators.Simulator`, :py:function:`~bayesflow.simulators.make_simulator`,
3+
and several other kinds of :py:class:`~bayesflow.simulators.Simulator` implementations, which serve as generative
4+
mathematical models, or data generating processes, with their primary function being to sample data.
5+
"""
6+
17
from .sequential_simulator import SequentialSimulator
28
from .hierarchical_simulator import HierarchicalSimulator
39
from .lambda_simulator import LambdaSimulator

bayesflow/types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Custom types.
2+
Custom types used for type annotations.
33
44
.. currentmodule:: bayesflow.types
55

0 commit comments

Comments
 (0)