Diabetes Prediction using KNN algorithm.
Aim :- Predict whether a person will be diagnosed with diabetes or not.
Context — This dataset is originally from the Kaggle. The objective of the dataset is to diagnostically predict whether or not a patient has diabetes, based on certain diagnostic measurements included in the dataset. Several constraints were placed on the selection of these instances from a larger database. In particular, all patients here are females at least 21 years old.
Procedure :-
First of all we will import the libraries as usual.
Values of columns like ‘Glucose’, ‘BloodPressure’ cannot be accepted as zeroes because it will affect the outcome. We can replace such values with the mean of respective column.
Then Split dataset into train and test.
Now, Feature Scaling.
Define the model.
then find the accuracy.
then we will test it.
Here is the Google Colab File Link :- https://colab.research.google.com/drive/1RphoDIVYmL0x2ooSt64oNRH34fi_gBGU?usp=sharing
Dataset file Link :- https://drive.google.com/file/d/1aTRZDDb6zBKJ8JWhgxjQVky05MbNVV1U/view?usp=sharing
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
If there’s something wrong please tell me I’ll be Happy to Learn.
My LinkedIn account waiting for you.
Thank You!