PyAutoFit is a Python probabilistic programming language for model fitting and Bayesian inference.
pip install -e ".[dev]"python -m pytest test_autofit/
python -m pytest test_autofit/non_linear/
python -m pytest test_autofit/mapper/NUMBA_CACHE_DIR=/tmp/numba_cache MPLCONFIGDIR=/tmp/matplotlib python -m pytest test_autofit/- Non-linear searches (
non_linear/search/): MCMC (emcee), nested sampling (dynesty, nautilus), MLE (LBFGS, BFGS, drawer) - Model composition (
mapper/):af.Model,af.Collection, prior distributions - Analysis (
non_linear/analysis/): baseaf.Analysisclass withlog_likelihood_function - Aggregator (
aggregator/): results aggregation across runs - Database (
database/): SQLAlchemy backend for results storage - Graphical models (
graphical/): expectation propagation
- All files must use Unix line endings (LF)
- Format with
black autofit/
- Read the issue description and any linked plan.
- Identify affected files and write your changes.
- Run the full test suite:
python -m pytest test_autofit/ - Ensure all tests pass before opening a PR.
- If changing public API, note the change in your PR description — downstream packages (PyAutoArray, PyAutoGalaxy, PyAutoLens) and workspaces may need updates.