K-nearest neighbor for English letter classification by doing random partition.

버전 1.0.0.0 (182 KB) 작성자: lavya Gavshinde
Evaluates 4-nearest neighbor for English letter classification by doing random partition.
다운로드 수: 1.1K
업데이트 날짜: 2012/8/16

라이선스 보기

% 1: Load letter.mat file which contains letter data and its label
% seperately.
% 2: Randomize the order of data for each iternation so that new sets of
% training and test data are formed.
%
% The training data is of having size of Nxd where N is the number of
% measurements and d is the number of variables of the training data.
%
% Similarly the size of the test data is Mxd where M is the number of
% measurements and d is the number of variables of the test data.

% 3: For each observation in test data, we compute the euclidean distance
% from each obeservation in training data.
% 4: We evalutate 'k' nearest neighbours among them and store it in an
% array.
% 5: We apply the label for which distance is minimum
% 5.1: In case of a tie, we randomly label the class.
% 6: Return the class label.
% 7: Compute confusion matrix.

인용 양식

lavya Gavshinde (2024). K-nearest neighbor for English letter classification by doing random partition. (https://www.mathworks.com/matlabcentral/fileexchange/37829-k-nearest-neighbor-for-english-letter-classification-by-doing-random-partition), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
도움

받음: K Nearest Neighbors

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Lavya Gavshinde 201250831 Assignment 1/

버전 게시됨 릴리스 정보
1.0.0.0