INNER CODE UNIT · Python

setup

bayesflow-org/bayesflow · bayesflow/__init__.py:5

def setup():
    # perform any necessary setup without polluting the namespace
    import os
    import logging
    from importlib.util import find_spec

    # set the basic logging level if the user hasn't already
    logging.basicConfig(level=logging.INFO)

    # use a separate logger for the bayesflow package
    logger = logging.getLogger(__name__)
    logger.setLevel(logging.INFO)

    issue_url = "https://github.com/bayesflow-org/bayesflow/issues/new?template=bug_report.md"

    if "KERAS_BACKEND" not in os.environ:
        # check for available backends and automatically set the KERAS_BACKEND env variable or raise an error
        class Backend:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…