feat: prior configs + docs for the AdaptPower regularization siblings - #592
Merged
Merged
Conversation
Adds prior configs for the four *Power regularization classes introduced in PyAutoArray (PyAutoLabs/PyAutoArray#512): adapt_power, adapt_split_power, adapt_split_zeroth_power and matern_adapt_power_kernel. Each is a copy of its legacy counterpart — the same LogUniform(1e-6, 1e6) coefficient priors, which now span lambda^2 rather than lambda^4 — plus a Constant prior fixing power at 1.0 so a non-linear search never samples the convention switch. Also adds AdaptPower / AdaptSplitPower to the docs/api pixelization autosummary, and a composition test proving the ag.reg re-export chain and the prior-config resolution. Depends on PyAutoLabs/PyAutoArray#512. Refs PyAutoLabs/PyAutoArray#511
This was referenced Aug 29, 2026
Merged
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
Prior configs, API docs and a composition test for the four
*Powerregularization siblings added in PyAutoLabs/PyAutoArray#512 (AdaptPower,AdaptSplitPower,AdaptSplitZerothPower,MaternAdaptPowerKernel).autogalaxy/config/priors/regularization/{adapt_power,adapt_split_power,adapt_split_zeroth_power,matern_adapt_power_kernel}.yamlare copies of their legacy counterparts — sameLogUniform(1e-6, 1e6)coefficient priors, which under the new classes span λ² rather than λ⁴ — pluspower: {type: Constant, value: 1.0}so the convention switch is never sampled by a search.docs/api/pixelization.rstgainsAdaptPower/AdaptSplitPowerin theag.regautosummary.test_autogalaxy/test_regularization_power.pyproves theag.regre-export chain, thataf.Modelexposes exactlyinner_coefficient/outer_coefficient/signal_scale(notpower), and that the identifier differs from the legacy class.API Changes
None to
autogalaxysource — config, docs and test additions only. The new public symbols are added upstream in PyAutoLabs/PyAutoArray#512 and reach users here asag.reg.AdaptPower,ag.reg.AdaptSplitPower,ag.reg.AdaptSplitZerothPower,ag.reg.MaternAdaptPowerKernel.See full details below.
Test Plan
pytest test_autogalaxy/— 1152 passed (with PyAutoArray#512 onPYTHONPATH)af.Model(ag.reg.AdaptSplitPower)composes;powerresolves to theConstantvalue1.0and is absent from the prior tuplesaf.Model(ag.reg.AdaptSplit).identifier != af.Model(ag.reg.AdaptSplitPower).identifierFull API Changes (for automation & release notes)
Added
AdaptPower,AdaptSplitPower,AdaptSplitZerothPowerandMaternAdaptPowerKernel— the coefficient priors are unchanged copies of the legacy schemes' (LogUniform(1e-6, 1e6)), andpoweris aConstantprior fixed at1.0.docs/api/pixelization.rstautosummary entries forAdaptPowerandAdaptSplitPower.Migration
ag.reg.AdaptSplit(inner_coefficient=c, outer_coefficient=c)ag.reg.AdaptSplitPower(inner_coefficient=c**2, outer_coefficient=c**2)Depends on PyAutoLabs/PyAutoArray#512. Refs PyAutoLabs/PyAutoArray#511.
Generated by the PyAutoLabs agent workflow.