00:01
In this problem we are given a data of p -i -m -e indian data set of diabetes patients.
00:07
So this data can be fetched various sites such as kaggle, githab, ekstra.
00:13
So this data contained 768 rows and nine columns.
00:23
Okay, so in this question we are asked to find the accuracy of this data with, 70 % of training and 30 % testing.
00:35
Accuracy of data set with 70 % of training and 30 % testing.
00:56
Okay.
00:57
So we have few accuracy from different models.
01:01
So we will see one by one.
01:05
So first is knn.
01:08
So knn means k nearest neighbor.
01:13
Okay.
01:14
Now kn here, knn is equals to k neighbors classifier.
01:26
N neighbors are 11.
01:29
K &n fit is k train and predict predicted.
01:41
Kn is equal to knn.
01:44
Predict x test c m k n is equals to matrix confusion and accuracy kn matrix accuracy score y test predicted okay now k is equals to three so its accuracy is 0 .7385341091 and k is equals to 5 so accuracy is 0 .75 -22935 -7998 and if accuracy is and if k is equals to 11 so accuracy will be 0 .775 -264 -2 22018.
03:00
K is equals to 13.
03:02
Accuracy is 0 .76146 -7889408.
03:11
Thus, best fit at k is equals to 11.
03:20
Okay...