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
Complete assignment as per attached word doc. Include function files along with Matlab assignment file.

Function char: The function char does the opposite; it converts from any number type to the type char: >> char(numequiv) ans = a As the letters of the alphabet are

Operators: There are in general two types of operators: unary operators that operate on a single value or operand; and binary operators, that operate on two values or operands

Writing data to a File: The save function can be used to write a data from the matrix to the data file, or to append a data file. The format is as shown below: save filenam

The Requirement details of project are as below. I also need detail description for presentation. For the project, given the training dataset ticdata2000.txt use any method you

Write a function called threshold2 (in a file called 'threshold2.m'). The function takes an arbitrary number of input variables. The first input variable, t, is required and is the

Example of variable names: If nothing appears when, who or whose is entered, which means there aren't any variables! For illustration, in the starting of a MATLAB session, the

Show the output - algorithms: Where does the output go? The two possibilities are (i) to an external file, or (ii) to a window on the screen. Based on system, one of these wil

Ant Colony Optimization for Optimization of Route path taken Ant Colony Algorithm is a potential candidate for coupled, 3D optimisation. Ant Colony Algorithm enjoys the overall

Why Function stubs are used?