Program that perform k nearest neighbours algorithm, MATLAB Programming

1) Convert the table into format convenient for the processing with MATLAB.

2) Prepare a program that perform K Nearest Neighbours algorithm using Euclidian distance. (Your program should not utilise the MATLAB function for KNN)

3) For each row (instance) from the table prepare the results of the cross-validation: for each instance apply the program for different values of K = 1,2,3,4,5. Analyse the accuracy of the classification using cross-validation and visualize your results.

4) Please create a decision tree for prediction of USA presidential elections. Select randomly several example of each class for the test set and exclude them from the training set. Find the training and the test set errors.

5) Which method works better for this dataset? Explain please.

6) Please write a conclusion.

 

 

Posted Date: 3/20/2013 6:21:36 AM | Location : United States







Related Discussions:- Program that perform k nearest neighbours algorithm, Assignment Help, Ask Question on Program that perform k nearest neighbours algorithm, Get Answer, Expert's Help, Program that perform k nearest neighbours algorithm Discussions

Write discussion on Program that perform k nearest neighbours algorithm
Your posts are moderated
Related Questions
how can i model this eqn: solve n plot x vs v x^3-2x^2+x=v^2(.532*10^-3) by putting v=0 to 20 and find the change in x


Illustration of Input function: For illustration, >> rad = input('Enter the radius: ') Enter the radius: 5 rad = 5 If character or string input is preferred, 's' s

Micro-mouse is an engineering design competition created by IEEE in the late 1970s. Small robotic "mice" solve a 16x16 cell maze. The mice are completely autonomous and must find t

Consider the shaft-rotor system shown in Figure. Write down the equations of motion. Taking  I= 1 kgm 2 and k=10 kNm/rad, for two special cases (α =0.5 and α = 1000) find as many

Hello sir, I am Bharat Prajapati.I am working on Copy-move forgery detection using 2D-DWT transform.How to code in matlab to detect copy-move forgery in the given image.Please help

A file houseafford.dat stores on its three lines years, median incomes and median home prices for a city. The dollar amounts are in thousands. For example, it might look like this:

Passing Multiple Arguments: In many situaion it is essential to pass more than one argument to the function. For illustration, the volume of a cone is given by here r

I need assistance in learning on how to do simulation of system described with an algebraic equations.