multiclassSVM-master

所属分类:数值算法/人工智能
开发工具:matlab
文件大小:7337KB
下载次数:4
上传日期:2019-02-01 20:39:23
上 传 者yara b
说明:  support vector machine

文件列表:
OCR (0, 2014-04-17)
OCR\applyKernel.m (400, 2014-04-17)
OCR\dataset3Params.m (1966, 2014-04-17)
OCR\displayData.m (1502, 2014-04-17)
OCR\ex3data1.mat (7511764, 2014-04-17)
OCR\featureNormalize.m (511, 2014-04-17)
OCR\gaussianKernel.m (803, 2014-04-17)
OCR\makeClasses.m (387, 2014-04-17)
OCR\ocr.m (4144, 2014-04-17)
OCR\pca.m (1273, 2014-04-17)
OCR\predict.m (809, 2014-04-17)
OCR\svmPredict.m (1669, 2014-04-17)
OCR\svmTrain.m (5965, 2014-04-17)

This is an implementation of Multi-Class classification with Support Vector Machines SVMs are great for binary classification. This implementation makes use of the one-vs-all method. ocr.m is the Application entry point. It calls other functions to perform the classification task. Training data: stored in ex3data.mat - This is a collection of 5000 handwritten digits stored as 20x20 images. This means that there are 400 features for every training sample. This training data is split as follows: 60 % : Used for training the SVMs (randomise data before use, as data is ordered) 20 % : Used as cross validaition set, to derive SVM parameters C_svm and sigma_svm 20 % : Used for testing the classifier Number of classes is 10 - Classification of digits (0 - 9) => there are 10 classes Since there are 400 features and 5000 training examples we use the Gaussian kernel as opposed to simple Logistic regression or SVMs without any kernel (linear kernel). After the SVMs are done classifying the result from the most confident SVM is chosen. Confidence is measured as follows: confidence = (theta)' * (inputX) where theta: set of parameters to train the SVM and inputX: column vector of an input sample onto which the kernel function has been applied Currently I am able to get an accuracy of 79.83% to 82.6% on the test set, which I believe would increase if C_svm and sigma_svm are chosen automatically using dataset3Params.m (the use of this script has been omitted as it takes a good deal of time to execute)

近期下载者

相关文件


收藏者