Commit d80b7e1
authored
Merge pull request #148 from UCL-CORU/fix-specialty-mismatch
## Summary
- Separate services and subgroups into distinct keys (`"services"` / `"subgroups"`) in the transfer model's internal dict, so subgroup names (e.g. `paediatric`, `adult_male_young`) no longer appear alongside real services in error messages
- Return `0.0` with a warning when `get_transfer_prob` is called with a service not in the training set, instead of crashing with a `ValueError` that dumps hundreds of service names
- Shorten `warn_specialty_mismatch` messages to report counts only, without listing every mismatched specialty
- Add prettier formatting step to `tox -e docs` (pinned to `@3.1.0`) so generated notebook markdown matches the pre-commit hook and doesn't create spurious diffs
- Fix task issue template formatting7 files changed
Lines changed: 244 additions & 378 deletions
File tree
- .github/ISSUE_TEMPLATE
- src/patientflow
- predictors
- predict
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | | - | |
93 | | - | |
| 91 | + | |
94 | 92 | | |
95 | 93 | | |
96 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1357 | 1357 | | |
1358 | 1358 | | |
1359 | 1359 | | |
1360 | | - | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1361 | 1363 | | |
1362 | 1364 | | |
1363 | 1365 | | |
| |||
1366 | 1368 | | |
1367 | 1369 | | |
1368 | 1370 | | |
1369 | | - | |
1370 | 1371 | | |
1371 | | - | |
1372 | 1372 | | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
| 1373 | + | |
1381 | 1374 | | |
1382 | 1375 | | |
1383 | 1376 | | |
| |||
0 commit comments