GithubHelp home page GithubHelp logo

stagenet's People

Contributors

v1xerunt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

stagenet's Issues

Could you please provide the requirements.txt

Hey, I recently want to train the model, after i prepared the data and copy it to the data folder, i meet some problems.
When i run:

python train.py --data_path=data --file_name='trained_model

I got the output like that:

E:\StageNet\ai\StageNet>python train.py --data_path=data --file_name='trained_model
train.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
Preparing training data ...
Constructing model ...
available device: cuda:0
Start training ...
Chunk 0, Batch 0: Loss = 0.6755

==>Predicting on validation
Valid loss = 0.5794


confusion matrix:
[[66]]
Traceback (most recent call last):
  File "train.py", line 280, in <module>
    ret = metrics.print_metrics_binary(valid_true, valid_pred)
  File "E:\StageNet\ai\StageNet\utils\metrics.py", line 21, in print_metrics_binary
    acc = (cf[0][0] + cf[1][1]) / np.sum(cf)
IndexError: index 1 is out of bounds for axis 0 with size 1

I wonder if it's because I'm using the wrong version of the library, I would like to ask whether requirements.txt can be provided

How to use your model for other data sets?

Hello, after reading the StageNet model, I am very interested. So, if I want to use it for modeling the sequence of access data composed of 11 variables with unequal intervals. May I ask which parts of the model you mentioned to change?

I'm looking forward to your answer, thanks.

problems about data set partitioning

Hi,
I used the benchmark tools to complete data set partitioning of MIMIC-iii. However, There is no validation set in it. And the csv file in your ./data dictionary is just for seveal examples. Can you release the complete patitioning csv file?
Thanks,
Lucas

About the time information

It seems like you preprocess the time difference into the regular interval (e.g. an hour), but how to deal with the time interval if we deal with the clinical records in each visit?

Thanks.

Reproduce the MIMIC3 experimentation

Hi,
I tried to reproduce the experimentation result on MIMIC3 dataset from the paper. However, I think there might be something wrong probably in the setting.

I got the results as the last 2 rows. The 3rd row "StageNET (Author's Saved Weights)" is pretty close to the paper's number; however when I retrained the model by calling
"python train.py --data_path='path/to/data/' --file_name='trained_model'"
I got the result as in the last line. (The best model picked was from epoch 9.)
Can you please help on how should I retrain the model.

ย  AUPRC AUROC min(Re, P+)
LSTM 0.280 (0.003) 0.897 (0.002) 0.324 (0.003)
StageNET (Paper's Result) 0.323 (0.002) 0.903 (0.002) 0.372 (0.003)
StageNET (Author's Saved Weights) 0.337471534 0.902723791 0.372237646
StageNET (Trained Model) 0.288944411 0.890060419 0.339553482

Thanks,
Thiti

MIMIC dataset sample and ESDR dataset

Great job. Can this code be applied to the ESDR data set, and where can I find this ESDR dataset? And, can you provide some test samples, and annotate the data flow in your code in detail.

Time interval information

Hi there,

I find your paper quite interesting and it's great that you open sourced the code.
I'm trying to follow your code and reproducing the experiment results using the MIMIC-III dataset.
I notice that in the train.py:
batch_time = torch.ones((batch_x.size(0), batch_x.size(1)), dtype=torch.float32).to(device)
is used as input for the time interval between different visits, which is in contrast with what claimed in the paper.

Could you explain what is going on here? Is there something that I'm misunderstanding?
Thanks!

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.