Implementation of KNN in R

preview_player
Показать описание
In this video, we will implement KNN in R on the Pima-Indians-diabetes dataset where we will try to predict whether a given patient will be diabetic or not based on medical records.
link to code( R file) :
link to code( text format) :
link to data:
link to download R for windows :
#DataScience #MachineLearning #Supervisedlearning #knn #Classification
Рекомендации по теме
Комментарии
Автор

here, on using knn() we are getting only predicted values for test data.. but I need accuracy and kappa values for training data set also...please help me with this..please..

poojamahesh
Автор

No missing values check, No normalization performed then how will accuracy be relied upon.

kumarnavkav
Автор

sorry, may I ask you? I didn't understand yet about part :
pred_test=knn(train[, -9], test[, -9, train$class, k=2)
can you explain again? and if I change the number, not 9, is it ok?
thankyou..

intanwahyuningsih
Автор

Can you help me i need code knn with Mapreduce in r

ilhembenhenda
Автор

i mean, i need to show the accuracy and kappa values for training data first, and after that I have show the accuracy and kappa values for test data...i hope my question is clear.. please help me with this..please

poojamahesh