Commit 329f70d
authored
ChestX-ray14 Dataset and Classification Tasks (#392)
* Initial version of chestxray14.py
* Fix typo and use relative pyhealth import path
* Add back full import path
* Add "Dataset" to class name.
* Initial version of test_chestxray14.py
* Add --no-download flag to chestxray14.py
* Change "name" to "dataset_name"
* Init base class
* Better align to BaseDataset and hide internals
* Align ChestXray14Dataset to BaseDataset
* Add way to set config path
* Init BaseDataset last
* Set path default to working directory
* Fix image path bug
* Debug print
* DataFrame drop bug fix
* Fix DataFrame column name bug
* Make classes a list
* Fix no findings sum
* Fix path prepend
* Set config_path for unit tests
* Remove test_local_dataset
* Fix download path bug
* Fix unit test config path
* Remove path related testing (can't get working with config_path)
* Match unit test path
* Add ChestXray14BinaryClassification task
* Fix test_len unit test
* Add file headers
* Add dataset and task to __init__.py and use relative paths for pyhealth import statements
* Fix circular import and add back task logger
* Add list of classes to task
* Add logging handler
* Add max and percentages to stat
* Override base dataset stats method
* Show stats in floating point not scientific notation
* Remove duplicate classes list
* Multilabel classification task
* Update multilabel task to return a list of diseases present
* Update multilabel task to use class indices
* Fix tensor comparision
* Debug print statement
* Another debug print statement
* Fix label check
* Use disease names for labels
* Fix multilabel test
* Add path to samples
* Fix multilabel test and remove debug print
* Fix another test bug
* Small PR fixes recommended by Copilot
* Remove CSV file download from unit tests
* Add test for invalid binary classification task disease
* Add missing column to unit test input data
* Update unit test data setup and teardown
* Fix multilabel task docstring (labels description)
* Loosen multilabel task unit test to remove need for extra path data in samples
* Protect against zip-slip when extracting image TAR files
* Remove unused imports from unit tests
* Make error message format consistent
* Strip out ChestXray14Dataset methods meant only for testing (use get_patient and get_events instead)
* Add patient ID heirarchy and additional dataset attributes
* Remove unused imports
* Shrink "partial" dataset download size
* Override the BaseDataset set_task method and replace relative import paths
* Add ChestX-ray14 classification task examples
* Add ChestX-ray14 API docs
* Correct comment in ChestX-ray14 multilabel example
* Update datasets.rst and tasks.rst1 parent 5f5c991 commit 329f70d
File tree
14 files changed
+3351
-4
lines changed- docs/api
- datasets
- tasks
- examples
- pyhealth
- datasets
- configs
- tasks
- tests/core
14 files changed
+3351
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments