This project aims to create a Machine Learning model to predict the likelihood of diabetes and expose the model via an API.
- Data Collection: Gather relevant data for diabetic prediction.
- Data Preprocessing: Clean and preprocess the data.
- Model Training: Build and train the ML model.
- Model Evaluation: Evaluate the model's performance.
- API Development: Develop an API to expose the trained model.
- Deployment: Deploy the API to a server or cloud service.
- Python 3.x
- Flask
- Scikit-learn
- Pandas
- Numpy
- Clone the repository.
- Install the required packages:
pip install -r requirements.txt
- Run the API:
python app.py
- POST /predict: Predict the likelihood of diabetes based on input data.
curl -X POST -H "Content-Type: application/json" -d '{
"gender": "Female",
"age": 45,
"hypertension": 0,
"heart_disease": 0,
"smoking_history": "never",
"bmi": 28.5,
"HbA1c_level": 5.5,
"blood_glucose_level": 130
}' http://localhost:5000/predict