Comments (6)
When we are doing multitasking, for each input we have multiple outputs (mortality, remaining length of stay at each hour, decompensation at each hour and phenotypes). There are stays for which some of the outputs are not present. For example, when the stay is shorter than 2 days, the mortality label will not be provided. The masks are introduced to help us to keep everything in the same format. Moreover, later in the neural networks we will multiply the loss function of each output with the mask of that output. Whenever the mask is 0, that loss function will not be added into our total loss function.
from mimic3-benchmarks.
Oh I see that makes sense. Thank you so much for all the work on this dataset!
from mimic3-benchmarks.
Hey @Harhro94, I'm sorry for reopening the issue, but I observed in the Multi Task dataset, there are sequences which contain information of only < 48 hours. I tried looking for an explanation in the paper but could not. Sorry if I missed it. Do you mind telling how that case is handled to predict the In-Hospital Mortality? (which the paper states is only done at t = 48).
from mimic3-benchmarks.
That is possible, in that case the multitask network will try to predict length of stay, decompensation and phenotyping, but not in-hospital mortality. In general, for each sample we predict all labels that are present for that sample.
from mimic3-benchmarks.
Hi @Harhro94,
On further inspection and crashing codes, I found this error as well:
ValueError: Only one class present in y_true. ROC AUC score is not defined in that case.
It appears for some files, phenotype labels are all zeros. Could this be possible bug or this is a known possibility?
I discovered this while I was computing my ROC AUC score.
from mimic3-benchmarks.
@salmanazarr, that is not a bug. Probably you are running the scripts on a small subset of the dataset, where there is no positive cases for some phenotype. If you run the script on the whole dataset, you will not get that error.
Another option is to catch that ValueError and return ROC AUC=nan.
from mimic3-benchmarks.
Related Issues (20)
- How to get ICD9-code according to each timestamp for per patient? HOT 1
- AttributeError: module 'keras.backend' has no attribute 'observe_object_name' HOT 1
- No such file 'data/root/85404/stays.csv'
- ValueError: Could not interpret optimizer identifier: 0.9 HOT 2
- hcup_ccs_2015_definitions.yaml issue
- ValueError: '0' is not in list
- How to trace back array entries to the actual features used?
- Mismatch between DEATHTIME and OUTTIME
- requirement.txt does not work HOT 1
- Request to publish repository in papers with code HOT 1
- replication of model prediction - deviation of ~2% random seeds missing
- Overflow in int64 addition HOT 5
- the imp module is deprecated in favour of importlib
- ValueError: Failed to find data adapter that can handle input HOT 1
- ValueError: time data '2109-03-20' does not match format '%Y-%m-%d %H:%M:%S' HOT 1
- Project dependencies may have API risk issues HOT 1
- Rename files with colon in the name for Windows compatibility
- ValueError: Use `.rename` to alter labels with a mapper.
- ihm.pkl files differ and lot of missing values in an episode HOT 6
- Question about metric alignment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mimic3-benchmarks.