Search is not available for this dataset
time_in_hospital
float64
1
14
num_lab_procedures
float64
1
132
num_procedures
float64
0
6
num_medications
float64
1
81
number_outpatient
float64
0
42
number_emergency
float64
0
76
number_inpatient
float64
0
19
number_diagnoses
float64
1
16
change
float64
0
1
diabetesMed
float64
0
1
race:AfricanAmerican
float64
0
1
race:Asian
float64
0
1
race:Caucasian
float64
0
1
race:Hispanic
float64
0
1
race:Other
float64
0
1
gender:Female
float64
0
1
gender:Male
float64
0
1
age:70+
float64
0
1
age:[0-10)
float64
0
1
age:[10-20)
float64
0
1
age:[20-50)
float64
0
1
age:[50-70)
float64
0
1
admission_type_id:Elective
float64
0
1
admission_type_id:Emergency
float64
0
1
admission_type_id:New Born
float64
0
1
admission_type_id:Trauma Center
float64
0
1
discharge_disposition_id:Discharged to Home
float64
0
1
discharge_disposition_id:Other
float64
0
1
admission_source_id:Emergency
float64
0
1
admission_source_id:Other
float64
0
1
admission_source_id:Referral
float64
0
1
admission_source_id:Transfer
float64
0
1
medical_specialty:Cardiology
float64
0
1
medical_specialty:Emergency/Trauma
float64
0
1
medical_specialty:Family/GeneralPractice
float64
0
1
medical_specialty:Gastroenterology
float64
0
1
medical_specialty:Hematology/Oncology
float64
0
1
medical_specialty:InternalMedicine
float64
0
1
medical_specialty:Nephrology
float64
0
1
medical_specialty:ObstetricsandGynecology
float64
0
1
medical_specialty:Orthopedics
float64
0
1
medical_specialty:Other
float64
0
1
medical_specialty:Psychiatry
float64
0
1
medical_specialty:Pulmonology
float64
0
1
medical_specialty:Radiology
float64
0
1
medical_specialty:Surgery-Cardiovascular/Thoracic
float64
0
1
medical_specialty:Surgery-General
float64
0
1
medical_specialty:Urology
float64
0
1
diag_1:Circulatory
float64
0
1
diag_1:Diabetes
float64
0
1
diag_1:Digestive
float64
0
1
diag_1:Genitourinary
float64
0
1
diag_1:Infectious
float64
0
1
diag_1:Injury
float64
0
1
diag_1:Mental
float64
0
1
diag_1:Musculoskeletal
float64
0
1
diag_1:Neoplasms
float64
0
1
diag_1:Non-diabetes endocrine/metabolic
float64
0
1
diag_1:Other
float64
0
1
diag_1:Respiratory
float64
0
1
diag_1:Skin
float64
0
1
diag_2:Circulatory
float64
0
1
diag_2:Diabetes
float64
0
1
diag_2:Digestive
float64
0
1
diag_2:Genitourinary
float64
0
1
diag_2:Infectious
float64
0
1
diag_2:Injury
float64
0
1
diag_2:Mental
float64
0
1
diag_2:Musculoskeletal
float64
0
1
diag_2:Neoplasms
float64
0
1
diag_2:Non-diabetes endocrine/metabolic
float64
0
1
diag_2:Other
float64
0
1
diag_2:Respiratory
float64
0
1
diag_2:Skin
float64
0
1
diag_3:Circulatory
float64
0
1
diag_3:Diabetes
float64
0
1
diag_3:Digestive
float64
0
1
diag_3:Genitourinary
float64
0
1
diag_3:Infectious
float64
0
1
diag_3:Injury
float64
0
1
diag_3:Mental
float64
0
1
diag_3:Musculoskeletal
float64
0
1
diag_3:Neoplasms
float64
0
1
diag_3:Non-diabetes endocrine/metabolic
float64
0
1
diag_3:Other
float64
0
1
diag_3:Respiratory
float64
0
1
diag_3:Skin
float64
0
1
metformin:Down
float64
0
1
metformin:No
float64
0
1
metformin:Steady
float64
0
1
metformin:Up
float64
0
1
repaglinide:Down
float64
0
1
repaglinide:No
float64
0
1
repaglinide:Steady
float64
0
1
repaglinide:Up
float64
0
1
nateglinide:Down
float64
0
1
nateglinide:No
float64
0
1
nateglinide:Steady
float64
0
1
nateglinide:Up
float64
0
1
chlorpropamide:Down
float64
0
1
chlorpropamide:No
float64
0
1
chlorpropamide:Steady
float64
0
1
chlorpropamide:Up
float64
0
1
glimepiride:Down
float64
0
1
glimepiride:No
float64
0
1
glimepiride:Steady
float64
0
1
glimepiride:Up
float64
0
1
glipizide:Down
float64
0
1
glipizide:No
float64
0
1
glipizide:Steady
float64
0
1
glipizide:Up
float64
0
1
glyburide:Down
float64
0
1
glyburide:No
float64
0
1
glyburide:Steady
float64
0
1
glyburide:Up
float64
0
1
pioglitazone:Down
float64
0
1
pioglitazone:No
float64
0
1
pioglitazone:Steady
float64
0
1
pioglitazone:Up
float64
0
1
rosiglitazone:Down
float64
0
1
rosiglitazone:No
float64
0
1
rosiglitazone:Steady
float64
0
1
rosiglitazone:Up
float64
0
1
acarbose:Down
float64
0
1
acarbose:No
float64
0
1
acarbose:Steady
float64
0
1
acarbose:Up
float64
0
1
miglitol:Down
float64
0
1
miglitol:No
float64
0
1
miglitol:Steady
float64
0
1
miglitol:Up
float64
0
1
tolazamide:No
float64
0
1
tolazamide:Steady
float64
0
1
tolazamide:Up
float64
0
1
insulin:Down
float64
0
1
insulin:No
float64
0
1
insulin:Steady
float64
0
1
insulin:Up
float64
0
1
glyburide-metformin:Down
float64
0
1
glyburide-metformin:No
float64
0
1
glyburide-metformin:Steady
float64
0
1
glyburide-metformin:Up
float64
0
1
A1Cresult:>7
float64
0
1
A1Cresult:>8
float64
0
1
A1Cresult:None
float64
0
1
A1Cresult:Norm
float64
0
1
max_glu_serum:>200
float64
0
1
max_glu_serum:>300
float64
0
1
max_glu_serum:None
float64
0
1
max_glu_serum:Norm
float64
0
1
readmitted
int64
0
1
2
38
3
27
0
1
2
7
1
1
0
0
1
0
0
0
1
1
0
0
0
0
0
1
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
1
0
0
1
0
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
0
0
1
0
0
0
0
1
0
0
1
0
0
0
0
1
0
0
0
1
0
0
4
48
0
11
0
0
0
9
0
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
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0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
1
0
0
0
0
1
0
0
1
0
0
0
0
1
0
0
0
1
0
0
6
54
2
29
0
0
0
8
1
1
0
0
1
0
0
1
0
0
0
0
0
1
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
1
0
0
0
0
1
0
0
1
0
0
0
0
1
0
0
0
1
0
1
4
25
0
12
0
0
0
5
0
1
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
1
0
0
0
0
1
1

Port of the diabetes-readmission dataset from UCI (link here). See details there and use carefully.

Basic preprocessing done by the imodels team in this notebook.

The target is the binary outcome readmitted.

Sample usage

Load the data:

from datasets import load_dataset

dataset = load_dataset("imodels/diabetes-readmission")
df = pd.DataFrame(dataset['train'])
X = df.drop(columns=['readmitted'])
y = df['readmitted'].values

Fit a model:

import imodels
import numpy as np

m = imodels.FIGSClassifier(max_rules=5)
m.fit(X, y)
print(m)

Evaluate:

df_test = pd.DataFrame(dataset['test'])
X_test = df.drop(columns=['readmitted'])
y_test = df['readmitted'].values
print('accuracy', np.mean(m.predict(X_test) == y_test))
Downloads last month
131
Edit dataset card