sir thank you so much for your valuable explanation about KNN. and i need to implement KNN code in java. can you please help me with this???

]]>Concrete question: let’s say that I have N, n-dimensional data points. I want to find an estimate for my (N+1)st data points having attributes (a1, a2, …, an). Now, I identify my k-nearest neighbors to my (N+1)st and produce an estimate for this data point. How do I produce a confidence interval for this estimate? Is it as simple as computing the sample standard deviation of the k points used and building a confidence interval about the estimate obtained for the (N+1)st point? Or is there an additional penalty that’s involved?

]]>i am priya. doing my M.E. i want the code of knn algorithm in java for my project. i searched in google. bt i’m nt getting the exact one. sir pls do post me a link or reply the link to priyasaishu@gmail.com

]]>I’ll appreciate if you can point me to code implementation of KNN algorithm in R. I am pursuing my masters in economics and i don’t want to use in-built class in R. I’ll greatly understand it if i can take a look at the implementation code.

Thanks ]]>

Hi,

This is excellent information on KNN.

Could u suggest me , how would be the combination of Naive Bayes (at first stage) and KNN (at second stage). This is in the case of application of Hydrid Machine Learning tech.to network traffic to classify trusted and untrusted packets.

What is ur suggestion. KNN should be used in first or second stage.Pls suggest.

Pls also suggest the best hybrid technique in combination with KNN.

]]>This is a great post for understanding basics of K-NN. Kudos to Saravanan Thirumuruganathan.

My question is about the number of classes. Say we have data from only one class for a two-class problem (normal-class and abnormal-class). Given a test-point and normal-class data points, is it possible to use 1-NN to say whether the test-point is a member of normal-class? I think this might be called an outlier detection problem as well.

]]>In Knn what problem could occur, if k is even? ]]>