Giter VIP home page Giter VIP logo

rnn_predict's People

Contributors

mp2893 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rnn_predict's Issues

error for running example code gru_onehot.py

Hi
I run the example code as follows, and it gives me some errors, could i ask hot to fix it? thanks.
python gru_onehot.py sequences.pkl labels.pkl outfile
Loading data ... done!!
Building the model ... done!!
Constructing the optimizer ... done!!
Optimization start !!
Traceback (most recent call last):
File "gru_onehot.py", line 268, in
train_GRU_RNN(dataFile=dataFile, labelFile=labelFile, outFile=outFile, inputDimSize=inputDimSize, hiddenDimSize=hiddenDimSize, max_epochs=max_epochs, L2_reg=L2_reg, batchSize=batchSize, use_dropout=use_dropout)
File "gru_onehot.py", line 245, in train_GRU_RNN
validAuc = calculate_auc(test_model, validSet)
File "gru_onehot.py", line 182, in calculate_auc
auc = roc_auc_score(list(labels), list(scoreVec))
File "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/ranking.py", line 260, in roc_auc_score
sample_weight=sample_weight)
File "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/base.py", line 75, in _average_binary_score
return binary_metric(y_true, y_score, sample_weight=sample_weight)
File "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/ranking.py", line 251, in _binary_roc_auc_score
raise ValueError("Only one class present in y_true. ROC AUC score "
ValueError: Only one class present in y_true. ROC AUC score is not defined in that case.

Application of Medical Concept Vector

Hello Ed,

Our team is working on EMR/EHR data and then applying Machine learning to build models to classify/predict for a specific use cases.
We have gone through your various works such as MedGAN, Medical concept vector using skip-gram and Med2Vec and are really interested in leveraging the same in our experiments.

There are two challenges that we face -

  1. Capturing the temporality of data.
  2. Deal with large number of features (Diagnosis , medications, Procedures, observations etc.)

We understand that Med2Vec is a better approach than MCV(Skip-gram) as Med2Vec captures the temporality by capturing visit-level representation.

We wanted to understand more on the Medical concept vector , how we can generate medical concept vectors for any EHR data.
Is MCV with skipgram code is already available on github?As we understand that you are using emb.pkl pickle files in your python code .

Thanks,
Ankit

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.