sajaddarabi / taper-ehr Goto Github PK
View Code? Open in Web Editor NEWPatient Code & Text Representation Learning
License: MIT License
Patient Code & Text Representation Learning
License: MIT License
Hello Dr. Darabi,
What Python version are you using for this project?
Best Regards,
Harold Mo
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
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'
Could you please guide in this issue?
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.