Skip to content

Commit a225a74

Browse files
authored
[ENH] Format lambda value with underscores and remove legacy backends (#15)
# [CLN] Remove legacy backend options and improve numeric formatting - Removed "aesara" and "legacy" backends from the `AvailableBackends` enum in `config.py` - Improved numeric readability by replacing `100000000` with `100_000_000` in the L1 regularization parameter These changes improve code clarity and maintainability without altering functionality.
2 parents 2c7e4ef + 233b59f commit a225a74

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

gempy_engine/API/interp_single/_interp_scalar_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _optimize_nuggets_against_condition_number(A_matrix, interp_input, kernel_op
117117
cond_number = BackendTensor.t.linalg.cond(A_matrix)
118118
nuggets = interp_input.sp_internal.nugget_effect_ref_rest
119119
l1_reg = torch.norm(nuggets, 2) ** 2
120-
lambda_l1 = 100000000
120+
lambda_l1 = 100_000_000
121121
loss = cond_number - lambda_l1 * l1_reg
122122
loss.backward()
123123
kernel_options.condition_number = cond_number

gempy_engine/config.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ class AvailableBackends(Flag):
88
numpy = auto()
99
PYTORCH = auto()
1010

11-
# Legacy
12-
aesara = auto()
13-
legacy = auto()
14-
1511

1612
# Define the paths for the .env files
1713

0 commit comments

Comments
 (0)