bord_dist | R Documentation |
Calculation of the distance of each sample to the SVM decision boundary in a classification problem.
bord_dist(x, y, krn = "linear")
x |
a data frame of input attributes. |
y |
a factor vector with the output class of each sample. |
krn |
a character with the kernel of SVM -see |
A vector of length nrow(x)
with the distance of each sample to the decision boundary.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.