Repository navigation
Conversation
Replace the nine notebooks in examples/tutorials/series with the current Colab versions, saved with outputs from a full Colab run, and add the three What's new in 2.1 notebooks. The notebooks now install pyhealth==2.1.0 from PyPI, fix the label leaks found in review (Quickstart, Tutorial 02), describe the mortality target as death during the next admission, embed a visual guide, and add Try it yourself exercises. Tutorials 04 and 07 open on a T4 GPU and are expanded (six-model comparison with tagged training logs; label distributions and checks against baselines for clinical text). Remove _source/: the notebooks are now edited as notebooks, and running the old generator would overwrite them with the pre-2.1 versions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test CoverageTotal: 67.88% (16694 / 24594 lines) No modified files under |
The Quickstart now predicts in-hospital death of the current admission (the next-admission task had no signal in the synthetic data) and walks through a full study: data figures, Table 1, logistic regression, RNN and XGBoost with bootstrap CIs and calibration, SHAP, subgroups, and an exported results folder. Outputs are from a full run on a Colab T4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhbzTePoLMBYwjMLG8R9ek
This branch has not been deployed
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.
Summary
examples/tutorials/seriesstill held the pre-release notebooks from #1281: they install PyHealth from GitHub and miss the fixes made since. This replaces them with the maintained Colab versions (the ones linked from pyhealth.dev and, after #1311, from the docs).What changes:
pyhealth==2.1.0from PyPI;set_task, Tutorial 02 long-stay task);whats_new_1/2/3_*.ipynb, cover splits and reproducibility, calibration and confidence intervals, and XGBoost and code mapping.README.mdrewritten for the 12 notebooks._source/removed. The notebooks are now edited as notebooks. Running the old generator would overwrite them with the pre-2.1 versions, and nothing else in the repo uses it.Outputs are kept (about 6 MB in total), so readers can see results on GitHub before running anything. Every notebook comes from a full Colab run with no errors in any cell; 04 and 07 ran on a T4.
Testing
tools/check_pr_rules.pypasses.🤖 Generated with Claude Code