- “templateLinear()” will typically build an ensemble of linear SVMs and by default will be useful for multiclass models.
- However, “templateSVM()” will create a binary classifier by default which must then be combined with the error correcting output codes (ECOC) approach to handle multiple classes.
- templateLinear(): https://www.mathworks.com/help/stats/templatelinear.html
- templateSVM(): https://www.mathworks.com/help/stats/templatesvm.html