Skip to content

Instantly share code, notes, and snippets.

@ymnliu
Last active October 22, 2019 22:34
Show Gist options
  • Save ymnliu/4a0b38b2486c7111106de9137bfdb581 to your computer and use it in GitHub Desktop.
Save ymnliu/4a0b38b2486c7111106de9137bfdb581 to your computer and use it in GitHub Desktop.
########################################
MS
########################################
/Users/m142167/anaconda3/lib/python3.7/site-packages/sklearn/metrics/classification.py:1437: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples.
'precision', 'predicted', average, warn_for)
precision recall f1-score support
UNSURED SENSE 0.00 0.00 0.00 1
morphine sulfate 0.97 0.97 0.97 30
multiple sclerosis 0.85 0.94 0.89 18
musculoskeletal 0.00 0.00 0.00 1
accuracy 0.92 50
macro avg 0.45 0.48 0.47 50
weighted avg 0.89 0.92 0.90 50
examples (first 5 cases) true_abbr pred_abbr
ADMISSION MEDICATIONS: MS Contin as above, predniso ... morphine sulfate morphine sulfate
ing. The patient is on a MS Contin and Percocet. On ... multiple sclerosis multiple sclerosis
nd is remarkable for: 1. MS. 2. Hypertension. 3. Ast ... morphine sulfate morphine sulfate
nd tremor secondary from MS. The patient has euthymi ... multiple sclerosis multiple sclerosis
rednisone 5 mg a day. 7. MS Contin 60 mg t.i.d. 8. ... morphine sulfate morphine sulfate
ASSESSMENT: 1. MS exacerbation. 2. Positi ... morphine sulfate morphine sulfate
########################################
MOM
########################################
precision recall f1-score support
milk of magnesia 1.00 1.00 1.00 7
multiples of median 1.00 1.00 1.00 43
accuracy 1.00 50
macro avg 1.00 1.00 1.00 50
weighted avg 1.00 1.00 1.00 50
examples (first 5 cases) true_abbr pred_abbr
in normal limits at 0.97 MOM. This assay excludes app ... milk of magnesia milk of magnesia
yroxine 0.1 mg daily. f. MOM 30 cc h.s. prn. g. Amit ... multiples of median multiples of median
CG= 0.77 MOM o DIA= 0.91 MOM * Adjusted risk for Dow ... milk of magnesia milk of magnesia
lace 100 mg p.o. b.i.d., MOM 30 cc p.o. t.i.d., Difl ... multiples of median multiples of median
CG= 1.17 MOM o DIA= 1.32 MOM * Adjusted risk for Dow ... multiples of median multiples of median
ternal serum AFP of 2.64 MOM, which increased her ris ... multiples of median multiples of median
########################################
US
########################################
precision recall f1-score support
United States 0.95 0.95 0.95 43
ultrasound 0.71 0.71 0.71 7
accuracy 0.92 50
macro avg 0.83 0.83 0.83 50
weighted avg 0.92 0.92 0.92 50
examples (first 5 cases) true_abbr pred_abbr
in an apartment in the US x12 years speaks Ukraini ... United States United States
e. He is visiting in the U.S. and developed a spontan ... United States United States
removed. A repeat renal US was performed just prio ... United States United States
She presently works for US Bank. ALLERGIES: Penici ... United States United States
y illicit drugs. He is a U.S. bank trust administrato ... United States United States
ME#%_ 12 1/2. Banker for US Bank Corporation. Senio ... United States United States
########################################
MR
########################################
/Users/m142167/anaconda3/lib/python3.7/site-packages/sklearn/metrics/classification.py:1437: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples.
'precision', 'predicted', average, warn_for)
precision recall f1-score support
GENERAL ENGLISH 0.00 0.00 0.00 1
magnetic resonance 0.93 0.96 0.95 28
mitral regurgitation 0.86 0.90 0.88 20
myocardial infarction:MI 0.00 0.00 0.00 1
accuracy 0.90 50
macro avg 0.45 0.47 0.46 50
weighted avg 0.86 0.90 0.88 50
examples (first 5 cases) true_abbr pred_abbr
ail and severe eccentric MR with pulmonary vein rev ... mitral regurgitation mitral regurgitation
ill proceed Tuesday with MR cholangiogram to assess ... mitral regurgitation mitral regurgitation
n both cerebellum areas. MR angiography revealed a ... mitral regurgitation mitral regurgitation
uld, however, suggest an MR angiogram of the renal ... magnetic resonance magnetic resonance
tigated. She then had an MR angiogram, which showed ... magnetic resonance magnetic resonance
year-old white male with MR and morbid obesity, her ... magnetic resonance mitral regurgitation
########################################
IT
########################################
precision recall f1-score support
GENERAL ENGLISH 0.85 0.94 0.89 18
iliotibial 1.00 0.67 0.80 3
information technology 1.00 0.93 0.97 15
intertrochanteric 1.00 1.00 1.00 2
intrathecal 0.89 0.89 0.89 9
ischial tuberosity 1.00 1.00 1.00 3
accuracy 0.92 50
macro avg 0.96 0.91 0.92 50
weighted avg 0.93 0.92 0.92 50
examples (first 5 cases) true_abbr pred_abbr
: ASPIRIN AND IBUPROFEN; IT DOES NOT HAVE ANY ALLER ... intrathecal intrathecal
employed as a manager in IT Company. FAMILY HISTORY ... iliotibial GENERAL ENGLISH
University of Minnesota IT Program. Prior to this ... GENERAL ENGLISH GENERAL ENGLISH
n. ALLERGIES: CODEINE AS IT CAUSES GI UPSET. REVIEW ... intrathecal intrathecal
ENT/PLAN: 1. Status post IT band release. Plan per ... information technology information technology
and works in healthcare IT. She is married and has ... GENERAL ENGLISH GENERAL ENGLISH
########################################
OR
########################################
precision recall f1-score support
GENERAL ENGLISH 1.00 0.50 0.67 2
operating room 0.98 1.00 0.99 48
accuracy 0.98 50
macro avg 0.99 0.75 0.83 50
weighted avg 0.98 0.98 0.98 50
examples (first 5 cases) true_abbr pred_abbr
and culture taken in the OR showed gram positive or ... operating room operating room
tube was changed in the OR on _%#MM#%_ _%#DD#%_, 2 ... operating room operating room
and he was taken to the OR for extraction of teeth ... operating room operating room
. On the way back to the OR, the patient coded for s ... operating room operating room
o is just now out of the OR after a mitral valve re ... operating room operating room
#%_, he was taken to the OR for a definitive treatm ... operating room operating room
########################################
FISH
########################################
precision recall f1-score support
GENERAL ENGLISH 1.00 1.00 1.00 5
fluorescent in situ hybridization 1.00 1.00 1.00 45
accuracy 1.00 50
macro avg 1.00 1.00 1.00 50
weighted avg 1.00 1.00 1.00 50
examples (first 5 cases) true_abbr pred_abbr
normal. The patient has FISH for DiGeorge, and chrom ... fluorescent in situ hybridization fluorescent in situ hybridization
Preliminary results from FISH analysis from Fairview- ... fluorescent in situ hybridization fluorescent in situ hybridization
nd HER-2/neu positive by FISH. REVIEW OF SYSTEMS: GENE ... fluorescent in situ hybridization fluorescent in situ hybridization
he preliminary nature of FISH results. I explained th ... fluorescent in situ hybridization fluorescent in situ hybridization
_%#NAME#%_. Preliminary FISH results are normal. Fin ... GENERAL ENGLISH GENERAL ENGLISH
a 1517 translocation by FISH study. She was seen by ... fluorescent in situ hybridization fluorescent in situ hybridization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment