Diabetes Prediction Model
This model predicts whether a person is diabetic based on several input features, including pregnancy count, glucose level, blood pressure, insulin level, BMI, age, and diabetes pedigree function.
Model Description
The model is a simple machine learning model trained on diabetes-related data. It uses the following features:
- Pregnancies: Number of pregnancies the person has had
- Glucose: Glucose concentration in the blood
- BloodPressure: Blood pressure measurement
- SkinThickness: Skin thickness measurement
- Insulin: Insulin level in the blood
- BMI: Body Mass Index
- DiabetesPedigreeFunction: A function that represents the genetic relationship of the person to diabetes
- Age: Age of the person
The model outputs whether the person is diabetic (1) or not diabetic (0).
How to Use
API Endpoint
You can interact with the model through the following API endpoint:
POST /diabetes_predictions
Request Format
The request should be a JSON object with the following fields:
{
"Pregnancies": int,
"Glucose": int,
"BloodPressure": int,
"SkinThickness": int,
"Insulin": int,
"BMI": float,
"DiabetesPedigreeFunction": float,
"Age": int
}