LianHP commited on
Commit
4804740
·
verified ·
1 Parent(s): cd2708d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md CHANGED
@@ -4,3 +4,29 @@ app_file: app.py
4
  sdk: gradio
5
  sdk_version: 5.47.2
6
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  sdk: gradio
5
  sdk_version: 5.47.2
6
  ---
7
+ 🧠 How This Model Works
8
+
9
+ 📌 Model
10
+ • TF-IDF converts clinical notes → numeric features
11
+ • Logistic Regression predicts 30-day readmission
12
+ • Produces probability + class label
13
+
14
+ 📌 SHAP
15
+ • SHAP KernelExplainer works for text models
16
+ • Provides a force plot explaining:
17
+ • What words increased risk
18
+ • What words decreased risk
19
+ • Outputs SHAP HTML (works in Hugging Face)
20
+
21
+ 📌 Example Words That Increase Risk
22
+ • “infection”
23
+ • “fever”
24
+ • “drainage”
25
+ • “swelling”
26
+ • “diabetes”
27
+ • “slow healing”
28
+
29
+ 📌 Words That Lower Risk
30
+ • “no complications”
31
+ • “independent ambulation”
32
+ • “normal vitals”