Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

knn accuracy in r

k_7 <- class::knn(training_data, testing_data, training_labels, k = 7)
mean(data_actual == k_7)
 
PREVIOUS NEXT
Tagged: #knn #accuracy
ADD COMMENT
Topic
Name
4+5 =