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
need help with while and loops

Model the three degree of freedom system shown in Figure Q5 and solve for the displacements of the three masses due to a force of 10 N applied to the bottom mass at a frequency of

For a statistically stationary environment it would be advantageous to use gear shifting, that is to reduce the adaptation gain with time. To illustrate this, try using a varying a

Given , provide solutions for the following systems of equations a) , 1.0 10.5 0.5 9 0.5 3.25 5.25 2.5 2 13 5 6 ? ? ? ? ? ? ? ? ? ? ? A ? ? ? ? ? ? ? ? ? ? ? ? 3 7 16 b b) , 1.0 10

Write a MATLAB function called pgm which calculates the periodogram. The function inputs should be the length input vector x and its output should be the length N periodogram estim

Customizing a Plot: Line Types, Color, Marker Types: Plots can be completed in the Command Window, if they are really simple. Though, at many times it is desirable to customiz

I am doing project "Recognizing people in video based on their body" the system will use MATLAB to detect people based on thier body and then recognize them from their clothes "us

Write a MATLAB program (using/making the necessary functions that you deem necessary) that does the two following jobs: It generates the following digital modulation schemes. In

Example: Load from File and Plot Data: As illustration, a file known as timetemp.dat stores two lines of data. The first line is the time of the day, and the next line is the

coding of sep protocol