Fix ChestX-ray14 Example Notebooks#828
Merged
jhnwu3 merged 2 commits intosunlabuiuc:masterfrom Feb 8, 2026
Merged
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.
In #392, I added the
chestxray14_binary_classification.ipynbandchestxray14_multilabel_classification.ipynbexamples. This PR cleans up three issues with these example notebooks.1. PyHealth Install
Previously, these notebooks installed PyHealth from a branch in my fork. Now that #392 is merged AND 2.0.0 is released, that can be cleaned up.
Before
After
Caution
Is it a surprise that
ipywidgetsmust also be explicitly installed? I get an error inbase_dataset.pyif I justpip install pyhealth.2. GitHub Display
I initially generated these notebooks in Google Colab. Apparently, this added a bunch of metadata, which wasn't compatible with the GitHub web UI. Trying to view the notebooks on GitHub would show the following. This PR should fix the issue.
3. Duplicate Output
The old versions of the example notebooks printed every output twice, which makes the example much longer and less clear. Apparently, I didn't have Google Colab properly configured to work with the Python logger. This PR fixes the duplicate output.