fix: remove deprecated code_mapping, dev, refresh_cache from examples and README#935
Open
haoyu-haoyu wants to merge 1 commit intosunlabuiuc:masterfrom
Open
fix: remove deprecated code_mapping, dev, refresh_cache from examples and README#935haoyu-haoyu wants to merge 1 commit intosunlabuiuc:masterfrom
haoyu-haoyu wants to merge 1 commit intosunlabuiuc:masterfrom
Conversation
The v2.0 MIMIC3Dataset/MIMIC4Dataset (based on BaseDataset) no longer accepts code_mapping, dev, or refresh_cache parameters. These were part of the legacy BaseEHRDataset API. Update README.rst, example scripts, and leaderboard utilities to use the current v2.0 API. Note: task file docstrings and pyhealth/datasets/mimicextract.py still reference code_mapping but are left for separate PRs since mimicextract.py has not yet been migrated to v2.0. Fixes sunlabuiuc#535
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
Remove references to deprecated
code_mapping,dev, andrefresh_cacheparameters from example scripts and README. These parameters belonged to the legacyBaseEHRDatasetAPI and are no longer accepted by the v2.0MIMIC3Dataset/MIMIC4Dataset(based onBaseDataset).Files updated
README.rstcode_mapping={"NDC": "CCSCM"}from quickstart exampleexamples/mortality_prediction/mortality_mimic3_grasp.pycode_mapping,dev,refresh_cacheexamples/drug_recommendation/drug_recommendation_mimic4_gamenet.pycode_mapping,dev,refresh_cacheexamples/patient_linkage_mimic3_medlink.pycode_mapping,dev,refresh_cacheleaderboard/utils.pycode_mapping,dev,refresh_cachefrom MIMIC3/MIMIC4 loadersOut of scope (for follow-up PRs)
pyhealth/tasks/*.py) — these containcode_mappingin>>>doctest examples that also need updatingpyhealth/datasets/mimicextract.py— still uses the legacy API (not yet migrated to v2.0)chat-assistant/corpus/— auto-generated text corpus, will update when source docs are fixedFixes #535