Giter Site home page Giter Site logo

taper-ehr's People

Contributors

sajaddarabi avatar

Stargazers

 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

taper-ehr's Issues

Python Version

Hello Dr. Darabi,

What Python version are you using for this project?

Best Regards,
Harold Mo

Error in processing while using gen_text_plus_code_data.py

Hello Dr. Darabi,

I am trying to run gen_text_plus_code_data.py file for generating dictionary containing patient id's.

python gen_text_plus_code_data.py -p '<path-to-where-df-were-saved>/df_less_1.pkl' -s '<path-to-save-output>' -et -cpb './data/biobert_pubmed/bert_config.json' -sdp './data/biobert_pubmed_model' -vpb './data/biobert_pubmed/vocab.txt' -bsl 512 -diag -proc -med -cpt -sc -vp <path-to-medical-code-vocabulary>

I am using Google Colab Pro with GPU but still it is taking so much time. I have executed it for more than 15 hrs but still it is not getting completed and is still showing 0%. Can you please help us to execute this step?

Thanking you in Advance!

Best regards,
Mohit Gureja

Error on 'ADMITTIME'

Hello Dr. Darabi
I try to run gen_data_df.py on Colab and upload the MIMIC III dataset (CSV files) folder on Google Drive.
I get an error on ADMITTIME.

NumExpr defaulting to 2 threads.
removing diagnosis codes occuring less than 5 times.
num codes before filter: 88 after filtering: 1
removing cpt procedure codes occuring less than 5 times.
num codes before filter: 18 after filtering: 3
removing prescription codes occuring less than 5 times.
num codes before filter: 121 after filtering: 9
removing procedure codes occuring less than 5 times.
num codes before filter: 1995 after filtering: 1055
Traceback (most recent call last):
File "/content/TAPER-EHR/TAPER-EHR/gen_data_df.py", line 99, in
df_adm_notes['ADMITTIME_C'] = df_adm_notes.ADMITTIME.apply(lambda x: str(x).split(' ')[0])
File "/usr/local/lib/python3.6/dist-packages/pandas/core/generic.py", line 5139, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'ADMITTIME'
TAPER

Could you please guide in this issue?
Thank you

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.