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)
multiclassSVM-master.zip_laughy3w_mustia8_svm matlab_vector_zip
版权申诉
97 浏览量
2022-07-15
20:48:05
上传
评论
收藏 7.17MB ZIP 举报
寒泊
- 粉丝: 75
- 资源: 1万+
最新资源
- 【全网最新最全】大气公司年度月度总结汇报PPT
- C语言实现低功耗STM32F411开发板(原理图+PCB源文件+官方例程+驱动等).zip
- C语言实现基于STM32 的联合调试侦听设备解决方案(原理图、PCB源文件、调试工具、视频).zip
- 【全网最全最酷】部门年度年终工作总结汇报PPT模板
- C语言实现基于STM32F103RC的电子相册(原理图、PCB源文件、程序源码及制作).zip
- C语言实现基于stm32和mpu9250的usb hid键盘、鼠标、游戏控制器.zip
- SAP GUI for Windows 7.70 Patch16
- C语言实现基于物联网的户外环境检测装置(STM32、APP、WIFI).zip
- Models for ICM/MCM美赛常用模型.zip
- cef源码CEF全称Chromium Embedded Framework
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈