Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Pick an algorithm and write a Pseudocode for the same?

Answer Posted / Abhishek Kumar Verma

Pseudocode for k-Nearest Neighbors (k-NN) algorithm: n1. Input training data set X and labels Y.n2. Input test data set X_test.n3. For each point in X_test:n a. Calculate distances between the point and all points in X.n b. Find k nearest neighbors.n c. Majority vote from k neighbors to predict the label.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you have research experience in machine learning?

73


What are standardization and normalisation? Give one advantage of each over the other?

74


Tell me what are the last machine learning papers you've read?

209


Tell us do you have research experience in machine learning?

150