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
The Colon Operator: If the values in the vector are regularly spaced, the colon operator is used to iterate through these values. For illustration, 1:5 results in all the inte

To accept two numbers from the user; Display all prime numbers between these two numbers.

Write a Matlab function that computes y1= tan(x) and y2= sin(x)/cos(x), returns the difference |y1-y2| and prints a message whether the two are equal or not. Test your function for

#quest121ion..

how to design a digital fir filter using anfis in matlab.get the code for that.

hi, I would like to get quote for my matlab assignment help? thanks


Example of Variables and assignment statements: The expression is computed and then that value is stored in the variable. For illustration, this is the way it would appear in

write a computer program that will provide a user with the equilibrium concentration of vacancies in a metallic element as a function of temperature.Temperature range should be men

The fuel consumption of a certain make of car may not be exactly that rated by the manufacturer. Suppose ten cars of the same model were tested for combined city and highway fuel c