Implementing soft margin SVM algorithm using Gaussian kernel for classification of handwritten digits (3 and 8) with a step by step Matlab code. Contents Parameters Datasets Loading the data Zscore normalization Initialise vectors Compute Gaussian kernel Solve quadprog to find alpha values Calculate near boundary coefficients Get support vector indices Compute bias b Decision function […]

# Tag: matlab

# Tag: matlab

Implementing soft margin SVM algorithm using linear kernel for classification of hand written digits (3 and 8) with a detailed Matlab code. Contents Parameters Datasets Loading the data Zscore normalization initialization of vectors calculate Alphas Compute the near boundary coefficients Calculate Support Vectors Compute bias parameter b Compute the decision function on training set Compute […]

# Tag: matlab

General Matlab help file for solving Principal Component Analysis / Proper Orthogonal Decomposition in detail Contents Clear all variables, close all open windows (figures), clear screen File for initializing parameters Create the 2D grid Create snapshot matrix Generate the snapshots and store to snapshot matrix S Calculate mean centered data Proper Orthogonal Decomposition Calculate relative […]

# Tag: matlab

Learning objectives To familiarise yourself with Matlab syntax and some basic commands and to be able to do some basic operations on matrices. Please remember that Matlab has excellent documentation. Try typing ‘help ‘ to see if that will provide the answers you seek. Also, googling ‘matlab ‘ is helpful most of the times. This part is intended […]