Skip to content
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

ENH: fix frame classification model to work with BioSoundSegBench #774

Merged
merged 24 commits into from
Sep 9, 2024

Conversation

NickleDave
Copy link
Collaborator

@NickleDave NickleDave commented Sep 9, 2024

This PR consists mainly of fixes needed for FrameClassificationModel to work with the BioSoundSegBench dataset.

… when they are present to post-process multi-class frame labels'
…datasets in eval/frame_classification.py, to make sure this variable exists when we build the DataFrame with eval results"
…ide eval/frame_classification.py so this variable exists when we get the post-processing transform
…de eval/frame_classification.py, using `constants.DEFAULT_BACKGROUND_LABEL`
…handle the case when the loss function returns a dict
…o numpy when we pass them in to self.post_tfm
…all it 'val_multi_acc' to distinguish from boundary_acc and for consistency with val_multi_acc_tfm
…so we have it as a separate variable; will use for post_tfm kwargs when we add those later
…ix so that we monitor 'val_multi_acc' when a model has multiple targets, and just 'val_acc' otherwise
…onal.postprocess -- don't if boundary_labels is None
…non-background segments are predicted for any sample in dataset
@NickleDave NickleDave changed the title ENH: make fix-ups to frame classifcation model ENH: fix frame classification model to work with BioSoundSegBench Sep 9, 2024
@NickleDave NickleDave merged commit 5ebe407 into main Sep 9, 2024
0 of 4 checks passed
@NickleDave NickleDave deleted the frame-classification-fixups branch September 9, 2024 19:11
NickleDave added a commit that referenced this pull request Sep 9, 2024
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