- Split of data using "cvpartition". If you partition your data into training and testing set using "cvpartition", you are enabling the data for cross validation. Find more about this on the following documentation page: https://www.mathworks.com/help/stats/cvpartition.html. The following code can be used as a boilerplate to make the partitions:
- Make an SVM using "fitcsvm". In this, you can keep the "solver" to be "SMO". More can be found on the documentation page: https://www.mathworks.com/help/stats/fitcsvm.html#bt9w6j6_sep_shared-Solver. Code to make the model and test it is as follows: