From d06be76890b15f76c21a6099fff93565f43c156c Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 9 Sep 2026 13:42:05 -0400 Subject: [PATCH] docs: mirror the JAX gradient search prompt into the README Same change as PyAutoLabs/PyAutoFit#1591, keeping the README's copy of the walkthrough in step: the "Choose a search" prompt asks about gradient based inference using JAX and states why this example uses Dynesty, and the list below gains the Gradient-based (JAX) bullet that answers it. Search names verified against the installed autofit public API. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41eff05..fd896a6 100644 --- a/README.md +++ b/README.md @@ -121,8 +121,10 @@ use domain-specific natural language while keeping it separate from the inferenc #### Choose a search -> Show me the available searches. For this first fit, use Dynesty nested -> sampling with 100 live points to estimate the posterior and evidence. +> Show me the available non-linear searches, including those which support +> gradient based inference using JAX. For this example fit, our likelihood +> function is not implemented using JAX, so lets use Dynesty nested sampling +> with 100 live points to estimate the posterior and evidence. PyAutoFit supports several types of inference algorithm: @@ -131,6 +133,10 @@ PyAutoFit supports several types of inference algorithm: - **MCMC:** Emcee and Zeus, for posterior sampling. - **Optimisation:** algorithms such as L-BFGS, for finding a best-fitting solution. +- **Gradient-based (JAX):** `BlackJAXNUTS` for Hamiltonian / NUTS sampling, and + `MultiStartAdam` / `MultiStartProdigy` for optimisation. These take gradients + of your likelihood automatically, so they require it to be written in JAX — + which is why this example, whose likelihood is plain NumPy, uses Dynesty. The assistant configures the requested search. You can ask it to explain the settings or help choose an algorithm for your likelihood and scientific