Spaces:
Sleeping
Sleeping
metadata
title: CVD Risk Predictor
sdk: streamlit
emoji: π
colorFrom: indigo
colorTo: red
pinned: true
Cardiovascular Disease Risk Predictor
This is a Streamlit-based web app to predict cardiovascular disease (CVD) risk using a trained FT-Transformer model.
π§ Model
The model is trained on health data with features like age, blood pressure, cholesterol, and lifestyle factors. It uses a decision threshold of 0.38 to determine high risk.
π How to Use
- Clone this repository or upload to Hugging Face Spaces.
- Ensure the folder structure is preserved.
- The app will automatically launch using
streamlit run app.py.
π Folder Structure
FTTransformerApp/
βββ app.py
βββ requirements.txt
βββ FTTransformerModel/
βββ model.ckpt
βββ config.yml
βββ encoder.pkl
βββ threshold.json
βββ callbacks.sav
βββ custom_params.sav
βββ datamodule.sav
βββ exp_logger.sav
β Prediction Threshold
This app uses a probability threshold of 0.38 to classify as high risk for CVD.