The svm module offers fitting, prediction and scoring using provided methods.
kernel: Afunction<double(arma::rowvec,arma::rowvec)>object which describes the kernel of the constructed SVM object.max_it: The maximum number of sucessive iterations of unchanged alphas before until the fit is completed.C: The regularization coefficient of the system.epsilon: The error threshold for violation of the KKT conditions.
kernel: A string containing the name of the standard kernel chosen. Current kernel choices are "linear".
Fit the SVM model to a provided dataset using sequential minimal optimization
X: The feature set to be fitted of shape (n_features, n_training_samples)y: The binary categorisation of the dataset of shape (n_training_samples)
Returns a arma::vec of predictions for the provided dataset.
X: A feature set of shape (n_features, n_samples)
Returns the mean prediction rate of the fitted model for samples X against targets y
X: A feature set of shape (n_features, n_samples) to be predicted.y: A binary classification vector of shape (n_samples) to be compared to predictions onX
- Armadillo
- C++14