C.2. Matlab Project 2: SVMs for Pattern Classification
C.2.1. Objectives
Use linear and nonlinear support vector machines (SVMs) to classify two-dimensional data.
C.2.2. Procedures
Linear SVMs
1. | Go to http://www.cis.tugraz.at/igi/aschwaig/software.html to download the software "svm_251" and save the m-files to your working directory. Some functions (e.g., plotboundary, plotdata, and plotsv) are included in the end of the m-file demsvm1.m. Extract these functions to form new m-files (e.g. plotboundary.m, plotdata.m and plotsv.m). |
2. | Open Matlab, go to "File" → "Set Path" and add the directory where "svm_251" was saved. Alternatively, add the statement "addpath svmdir"—where svmdir is the directory storing "svm_251"—to your .m file. |
3. | If your ... |
Get Biometric Authentication: A Machine Learning Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.