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.
Reason: The previous logic to retrieve the dataloaders and apply image transformations needed to be modified individually for each dataset, which is clunky when we try to run labeled-set only training for multiple datasets.
Fix: Add in a get_dataloaders function to hyper_search.py that can create and return the dataloaders necessary for training without separate logic for each dataset. Created different dataloaders for unlabeled data as well as CheXpert, to handle differences in label processing. Added in argument specifying path to unlabeled data.
Verification: Verified that data is processed and returned correctly by creating dataloaders for train, test, and validation (unlabeled data is not applicable for label-set only training at the moment, but logic to handle it was included), and manually saved outputs to qualitatively evaluate that the images were correct. Images are not included here since they contain sensitive medical information.