bord_dist {noisemodel} | 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.