bord_dist: Distance to SVM decision boundary
Description
Calculation of the distance of each sample to the SVM decision boundary in a classification problem.
Usage
bord_dist(x, y, krn = "linear")
Value
A vector of length nrow(x)
with the distance of each sample to the decision boundary.
Arguments
- 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 e1071::svm
(default: "linear
").