Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new unmixing training pipeline for the
SpecTfEncodermodel, adds support for out-of-distribution (OOD) data injection during classifier training, and updates the data configuration to include OOD datasets. The main changes are the addition of two new scripts for unmixing evaluation and training, improvements to OOD handling in classifier training, and updates to the YAML config to support these features.New unmixing pipeline and evaluation scripts:
models/spectf/report_spectf_unmixing.pyfor evaluating unmixing models, including metrics computation, scatter plot generation, and saving results.models/spectf/training_spectf_unmixing.pyfor unmixing model training, supporting both standard and focal loss, OOD validation, and detailed WandB logging and reporting.Enhancements to classifier training for OOD support:
models/spectf/training_spectf.pyto inject OOD spectra into the training dataloader (inject_ood=True), and mask out OOD entries (label-1) during loss computation to prevent them from affecting backpropagation. Also logs OOD injection in WandB config. [1] [2] [3]Data configuration updates:
models/spectf/v1/data_config.yamlto include paths forood-train-setand setpercent-ood-datain the dataloader section. [1] [2]These changes collectively enable robust training and evaluation of unmixing models with explicit support for OOD data handling and reporting.