Mental health prediction model made with sci-kit learn.
Setup your virtual environment and run the following command:
python app.py
{
"features":[[0.54,1,1,2,0,0,4,1]]
}
Once the app is up and running the hit this endpoint with above payload: http://127.0.0.1:5000/predict
The following are the features we'll use to predict our target variable (heart disease or no heart disease)
- Age - age in years,
- Gender - (1 = male; 0 = female),
- family_history - (0= No or 1 = yes),
- benefits - additional Benifits (yes=2, dont know=1, no=0)
- care_options - (yes=2, no=0 and probable=1)
- anonymity -
- leave - Ease of getting leaves (0 to 4)
- work_interfere - (yes=1 or no=0)