Skip to content

dangtna1/Framingham-CHD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🩺 Framingham Heart Disease Risk Prediction

This is a complete, runnable project for predicting 10-year risk of coronary heart disease (CHD).

Structure

  • data/raw/framingham.csv - placeholder sample file (replace with full dataset)
  • src/ - preprocessing, training and utility code
  • models/ - trained model and preprocessing pipeline will be saved here after training
  • app/ - Streamlit app for interactive predictions

How to run

  1. Install requirements:
    pip install -r requirements.txt
  2. (Optional) Replace data/raw/framingham.csv with the original Framingham dataset CSV.
  3. Train the model (this will save models/best_model.pkl and models/pipeline.pkl):
    python3 src/main.py
  4. Run the Streamlit app:
    streamlit run app/streamlit_app.py

Notes

  • The preprocessing pipeline is saved so the Streamlit app can reliably transform user input.
  • The sample CSV included is small and only for structure—replace with the real framingham.csv for meaningful results.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors