Skip to content

[ENH] Format lambda value with underscores and remove legacy backends #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gempy_engine/API/interp_single/_interp_scalar_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _optimize_nuggets_against_condition_number(A_matrix, interp_input, kernel_op
cond_number = BackendTensor.t.linalg.cond(A_matrix)
nuggets = interp_input.sp_internal.nugget_effect_ref_rest
l1_reg = torch.norm(nuggets, 2) ** 2
lambda_l1 = 100000000
lambda_l1 = 100_000_000
loss = cond_number - lambda_l1 * l1_reg
loss.backward()
kernel_options.condition_number = cond_number
Expand Down
4 changes: 0 additions & 4 deletions gempy_engine/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ class AvailableBackends(Flag):
numpy = auto()
PYTORCH = auto()

# Legacy
aesara = auto()
legacy = auto()


# Define the paths for the .env files

Expand Down