Downloads · 30 days
0
JenniferAnnKok/Heart_Disease_Classifier
Heart_Disease_Classifier is a machine learning model from JenniferAnnKok. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
An interactive Gradio app that trains a Random Forest classifier on heart disease data and visualises the full ML pipeline — right in your browser.
Downloads · 30 days
0
Access
Public
Updated May 18, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py14.8 KB · 83%
From the Hugging Face model README
An interactive Gradio app that trains a Random Forest classifier on heart disease data and visualises the full ML pipeline — right in your browser.
| Column | Type |
|---|---|
| Age, RestingBP, Cholesterol, FastingBS, MaxHR, Oldpeak | Numeric |
| Sex, ChestPainType, RestingECG, ExerciseAngina, ST_Slope | Categorical |
| HeartDisease | Target (0 or 1) |
Compatible with the Kaggle Heart Failure Prediction Dataset.
CSV Upload
└─► Train/Test Split (80/20, stratified)
└─► OneHotEncoder (categorical cols)
└─► StandardScaler (numeric cols)
└─► RandomForestClassifier(n_estimators=200, class_weight='balanced')
└─► Metrics + Visualisations