bord_dist {noisemodel}R Documentation

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")

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").

Value

A vector of length nrow(x) with the distance of each sample to the decision boundary.


[Package noisemodel version 1.0.2 Index]