Repository navigation
feat: Bring Your Own Likelihood (BYOL) mode - #41
Merged
Merged
Conversation
…ompt gets its door modes/byol.md catches the published "Set up PyAutoFit with my existing science project" prompt and runs its own contract one stage per turn: overview of the project and likelihood function, a model with priors chosen with the user, the Analysis wrapper validated against their function unchanged, a search recommendation with the reason, a go-ahead checkpoint that fits nothing until they say go, then the run with the output-folder tour and how to inspect and interpret the results. The ask-anything / teacher-mode footer sits on every stage, as in start here. You bring the likelihood; the assistant brings the inference. AGENTS.md registers the mode and its selection rule beside start here. README.md gives the BYOL material its own "Bring Your Own Likelihood (BYOL)" sub-heading under Your own project and says the prompt launches BYOL mode; prompt text unchanged. The mode's worked example quotes a real dry run on the bundled supernova dataset through a stand-in user likelihood module. Closes #40 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BrGfrSxV9xoqCa4v1p9hix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Bring Your Own Likelihood (BYOL) mode (
modes/byol.md): the door for the second published prompt ("Set up PyAutoFit with my existing science project …"). You bring the likelihood; the assistant brings the inference. The mode runs the prompt's own contract one stage per turn:af.Modelmirroring the free arguments, priors chosen with the user,model.info.Analysiswrapper importing their code unchanged;af_wrap_likelihood's three checks (finite, equals their function, bad instance scores worse); the data-inspection gate on their real data.The ask-anything / teacher-mode footer sits on every stage, as in start here.
AGENTS.mdregisters the mode and puts its trigger beside start here at the front of the selection chain (BYOL wins when both fire and code is pointed at).README.mdgives the BYOL material its own Bring Your Own Likelihood (BYOL) sub-heading at the end of "Your own project" (P2 points at it), says the prompt launches BYOL mode with the BYOB nod, and names BYOL in "Setting up" step 3 and "Getting Started". Prompt text unchanged; byte-identical between README and the mode. Setup docs untouched (they do not carry the BYOL prompt).Scripts Changed
None committed. The mode's worked example is a real dry run kept in gitignored
scripts/scratch/byol_demo/: a stand-in user module (sne_likelihood.py, flat-ΛCDM distance modulus overdataset/sne_cosmology/, 1371 SNe after the user's cuts, returning-0.5·χ²without the noise constant) taken through stages 1–6.Dry run
DynestyStatic(nlive=75)— evidence wanted, plain-numpy likelihoodpython autoassistant/audit_skill_apis.py --check-versionexits 0; all executed scripts pass the per-file audit.Test Plan
Merge order
Library-first gate: PyAutoLabs/PyAutoFit#1604 (docs only: the "(BYOL)" headings and the link sentences) merges first.
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_01BrGfrSxV9xoqCa4v1p9hix