feat: test prior config + docs for the AdaptPower regularization siblings - #716
Merged
Merged
Conversation
…ings Mirrors the four *Power regularization classes introduced in PyAutoArray (PyAutoLabs/PyAutoArray#512) into the test_autolens prior config, adds AdaptPower / AdaptSplitPower to the docs/api pixelization autosummary, and adds a composition test proving the al.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
Test prior config, API docs and a composition test for the four
*Powerregularization siblings added in PyAutoLabs/PyAutoArray#512 (AdaptPower,AdaptSplitPower,AdaptSplitZerothPower,MaternAdaptPowerKernel), through theal.regnamespace.test_autolens/config/priors/regularization.yamlgains the four entries, keyed<module>.<Class>as the file's existing entries are, withpowerfixed as aConstantprior. Verified live: the test config is consulted first, so these entries — not the packaged PyAutoGalaxy ones — are what the suite resolves.docs/api/pixelization.rstgainsAdaptPower/AdaptSplitPowerin theal.regautosummary.test_autolens/test_regularization_power.pymirrors the PyAutoGalaxy composition test.API Changes
None to
autolenssource — test config, docs and test additions only. The new public symbols are added upstream in PyAutoLabs/PyAutoArray#512 and reach users here asal.reg.AdaptPower,al.reg.AdaptSplitPower,al.reg.AdaptSplitZerothPower,al.reg.MaternAdaptPowerKernel.See full details below.
Test Plan
pytest test_autolens/— 572 passed, 1 xfailed (with PyAutoArray#512 onPYTHONPATH)af.Model(al.reg.AdaptSplitPower)composes;powerresolves to theConstantvalue1.0and is absent from the prior tuplesaf.Model(al.reg.AdaptSplit).identifier != af.Model(al.reg.AdaptSplitPower).identifierFull API Changes (for automation & release notes)
Added
test_autolens/config/priors/regularization.yamlentries foradapt_power.AdaptPower,adapt_split_power.AdaptSplitPower,adapt_split_zeroth_power.AdaptSplitZerothPowerandmatern_adapt_power_kernel.MaternAdaptPowerKernel.docs/api/pixelization.rstautosummary entries forAdaptPowerandAdaptSplitPower.Migration
al.reg.AdaptSplit(inner_coefficient=c, outer_coefficient=c)al.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.