Commit d0db8a0
init commit, tldr the cache_dir or files should probably indicate tab… (#835)
* init commit, tldr the cache_dir or files should probably indicate table names
* better approach is to hash the filename rather than the directory name
* Fix cache dir
* Simplify new caching behavior code and add unit tests
* Remove unnecessary f-string
* commit to remove cache_dir from task, will update after seeing if test cases pass
* Add proc UUID to samples cache dir docs
* Remove the cache_format param from set_task
* Remove task schema from the proc UUID (since it is now included in the task UUID)
* Add proc UUID to the _init_cache_dir docs
* Remove cache_format param from unit tests
* Remove set_task(cache_dir) from more examples
* Fix cache unit test (call_count increments trigger new caches and we can no longer override the default task cache)
* update cache size directory check to be more in line with our tasks/ subdir setup with how cache_dir works
* Remove unused ensure_empty_dir function
* Correct cache size calculations (the "workers_n" examples do not need to be corrected because they were already using the default task cache path)
---------
Co-authored-by: Yongda Fan <yongdaf2@illinois.edu>
Co-authored-by: EricSchrock <eric.schrock22@gmail.com>1 parent 3d11e3b commit d0db8a0
49 files changed
Lines changed: 387 additions & 419 deletions
File tree
- examples
- benchmark_perf
- clinical_tasks
- conformal_eeg
- cxr
- drug_recommendation
- interpretability
- length_of_stay
- mortality_prediction
- pyhealth/datasets
- tests/core
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | 151 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | 151 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | 151 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 162 | | |
170 | 163 | | |
171 | 164 | | |
| |||
282 | 275 | | |
283 | 276 | | |
284 | 277 | | |
285 | | - | |
286 | | - | |
287 | 278 | | |
288 | 279 | | |
289 | | - | |
290 | 280 | | |
291 | 281 | | |
292 | 282 | | |
| |||
311 | 301 | | |
312 | 302 | | |
313 | 303 | | |
314 | | - | |
315 | 304 | | |
316 | 305 | | |
317 | 306 | | |
318 | 307 | | |
319 | 308 | | |
320 | | - | |
| 309 | + | |
| 310 | + | |
321 | 311 | | |
322 | 312 | | |
323 | 313 | | |
| |||
327 | 317 | | |
328 | 318 | | |
329 | 319 | | |
330 | | - | |
331 | 320 | | |
332 | 321 | | |
333 | 322 | | |
| |||
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 162 | | |
170 | 163 | | |
171 | 164 | | |
| |||
284 | 277 | | |
285 | 278 | | |
286 | 279 | | |
287 | | - | |
288 | | - | |
289 | 280 | | |
290 | 281 | | |
291 | | - | |
292 | 282 | | |
293 | 283 | | |
294 | 284 | | |
| |||
313 | 303 | | |
314 | 304 | | |
315 | 305 | | |
316 | | - | |
317 | 306 | | |
318 | 307 | | |
319 | 308 | | |
320 | 309 | | |
321 | 310 | | |
322 | | - | |
| 311 | + | |
| 312 | + | |
323 | 313 | | |
324 | 314 | | |
325 | 315 | | |
| |||
329 | 319 | | |
330 | 320 | | |
331 | 321 | | |
332 | | - | |
333 | 322 | | |
334 | 323 | | |
335 | 324 | | |
| |||
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 162 | | |
170 | 163 | | |
171 | 164 | | |
| |||
284 | 277 | | |
285 | 278 | | |
286 | 279 | | |
287 | | - | |
288 | | - | |
289 | 280 | | |
290 | 281 | | |
291 | | - | |
292 | 282 | | |
293 | 283 | | |
294 | 284 | | |
| |||
313 | 303 | | |
314 | 304 | | |
315 | 305 | | |
316 | | - | |
317 | 306 | | |
318 | 307 | | |
319 | 308 | | |
320 | 309 | | |
321 | 310 | | |
322 | | - | |
| 311 | + | |
| 312 | + | |
323 | 313 | | |
324 | 314 | | |
325 | 315 | | |
| |||
329 | 319 | | |
330 | 320 | | |
331 | 321 | | |
332 | | - | |
333 | 322 | | |
334 | 323 | | |
335 | 324 | | |
| |||
0 commit comments