Skip to content

pasted changes from my rework in Acoustics_V2#21

Open
Saagar-Arya wants to merge 1 commit intomainfrom
nn-rework
Open

pasted changes from my rework in Acoustics_V2#21
Saagar-Arya wants to merge 1 commit intomainfrom
nn-rework

Conversation

@Saagar-Arya
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings March 17, 2026 15:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the neural network training script to make feature columns and confidence thresholds configurable via command-line arguments, replacing previously hardcoded values.

Changes:

  • Feature columns are now passed dynamically via --feature_cols CLI arg and propagated to HydrophoneDataset, removing hardcoded Envelope H1/H2/H3 index lookups.
  • Confidence thresholds are configurable via --conf_thresh CLI arg, replacing hardcoded 50%/80% thresholds with a loop over user-specified values.
  • Cleaned up commented-out code for different in_dim configurations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +69 to +73
missing = [name for name in features_list if name not in col_idx]

if missing:
raise ValueError(f"CSV missing requested feature columns: {missing}")

# def __init__(self, in_dim=1, num_classes=4, p_drop=0.2):
# def __init__(self, in_dim=2, num_classes=4, p_drop=0.2):

def __init__(self, in_dim=3, num_classes=4, p_drop=0.2):
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.

3 participants