GithubHelp home page GithubHelp logo

Comments (6)

hrayrhar avatar hrayrhar commented on June 2, 2024

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.

activatedgeek avatar activatedgeek commented on June 2, 2024

Oh I see that makes sense. Thank you so much for all the work on this dataset!

from mimic3-benchmarks.

activatedgeek avatar activatedgeek commented on June 2, 2024

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.

hrayrhar avatar hrayrhar commented on June 2, 2024

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.

activatedgeek avatar activatedgeek commented on June 2, 2024

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.

hrayrhar avatar hrayrhar commented on June 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.