lgatto / IntroMachineLearningWithR

An Introduction to Machine Learning with R
http://bit.ly/intromlr
75 stars 37 forks source link

How can the table results include 0.833 when you have 5 neighbors voting? #7

Open osahmali opened 3 years ago

osahmali commented 3 years ago

https://github.com/lgatto/IntroMachineLearningWithR/blob/7dbd49698797e33ac05ccbf8522800171dccb18f/30-sml.Rmd#L140

Since we are considering 5 neighbors, can you please explain how we can get this result (I would have presumed you can get 0,1,2,3,4 or 5 votes? Many thanks in advance