Skip to content

[ENH] Add soft segment activation function for improved layer segmentation #11

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 15 commits into from
May 9, 2025

Conversation

Leguark
Copy link
Member

@Leguark Leguark commented May 7, 2025

Improved Activation Functions with Soft Segmentation

This PR introduces a new soft segmentation approach for activation functions with the following changes:

  • Added _soft_segment.py module with soft_segment_unbounded function that provides improved sigmoid-based segmentation
  • Implemented specialized segmentation functions for lithology and fault handling
  • Updated the activation interface to use the new soft segmentation by default
  • Added support for both scalar and array-based sigmoid slope parameters
  • Incorporated per-edge adaptive temperature calculations for better control of sigmoid transitions
  • Added deprecation warning to the legacy hard sigmoid activation function
  • Created comprehensive test cases to validate the new segmentation functions

The new implementation provides more precise control over the transition between geological formations and supports both scalar field values and fault handling with improved numerical stability.

Copy link
Member Author

Leguark commented May 7, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Leguark Leguark changed the title [TEST] Adding test to investigate segmentation functions [ENH] Implement backend-specific soft segment activation functions May 7, 2025
@Leguark Leguark marked this pull request as ready for review May 7, 2025 16:30
@Leguark Leguark changed the title [ENH] Implement backend-specific soft segment activation functions [ENH] Add soft segment activation function for improved layer segmentation May 9, 2025
@Leguark Leguark merged commit e33d627 into main May 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant