May 2020
Intermediate to advanced
530 pages
17h 8m
English
To implement the SVM multi-class classification with the Shark-ML library, we should use the same approach as we used before for the logistic regression approach. The main difference is the type of binary classifiers. In this case, it is the KernelClassifier class, and the trainer for it is the CSvmTrainer class.
In the following sample, we will use two predefined parameters for the model, one being the C parameter for the SVM algorithm, and the second being the gamma for the kernel. The kernel object in this sample has the GaussianRbfKernel type, to deal with non-linearly separable data.
The following code snippet shows a function declaration with dataset objects as arguments:
void SVMClassification(const ClassificationDataset& ...
Read now
Unlock full access