GEOPY-2866: Research auto-scaling strategy for cross-gradient regularization terms#411
Open
domfournier wants to merge 8 commits into
Open
GEOPY-2866: Research auto-scaling strategy for cross-gradient regularization terms#411domfournier wants to merge 8 commits into
domfournier wants to merge 8 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an optional “iterative rescaling” mechanism for joint cross-gradient inversions, wiring it through options/UI and adjusting expected run-test targets to reflect the updated regularization behavior.
Changes:
- Add
iterative_rescalingparameter toJointCrossGradientOptions(default enabled) and expose it in the UI schema. - Modify cross-gradient multiplier scaling logic and (when enabled) add a SimPEG directive to rescale cross-gradient terms during iterations.
- Update joint cross-gradient run-test target metrics to match the new inversion behavior.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tests/run_tests/driver_joint_cross_gradient_test.py | Updates expected inversion metrics (targets) for the joint cross-gradient run test. |
| simpeg_drivers/joint/joint_cross_gradient/options.py | Introduces the iterative_rescaling option (and documents it). |
| simpeg_drivers/joint/joint_cross_gradient/driver.py | Adjusts cross-gradient scaling and appends an iterative scaling directive when enabled. |
| simpeg_drivers-assets/uijson/joint_cross_gradient_inversion.ui.json | Exposes iterative_rescaling as a UI-configurable parameter. |
Comments suppressed due to low confidence (1)
simpeg_drivers/joint/joint_cross_gradient/options.py:51
iterative_rescalingdefaults toTrue, which changes the cross-gradient scaling behavior for existing projects/options files that don't specify this new field: previously the multiplier always included abase_length**4dimensional scaling, but with the new default it will not. If this is intended, consider calling it out explicitly in release notes; otherwise set the default to preserve legacy behavior (e.g., defaultFalseand let the UI enable it explicitly).
cross_gradient_weight_a_b: float = 1.0
cross_gradient_weight_c_a: float | None = None
cross_gradient_weight_c_b: float | None = None
iterative_rescaling: bool = True
models: JointModelOptions = JointModelOptions()
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/GA_4.8 #411 +/- ##
==================================================
- Coverage 90.43% 90.40% -0.04%
==================================================
Files 110 110
Lines 6532 6542 +10
Branches 826 830 +4
==================================================
+ Hits 5907 5914 +7
- Misses 413 414 +1
- Partials 212 214 +2
🚀 New features to boost your workflow:
|
benk-mira
previously approved these changes
May 22, 2026
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.
GEOPY-2866 - Research auto-scaling strategy for cross-gradient regularization terms