bord_dist: Distance to SVM decision boundary

View source: R/000_common.R

bord_distR 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.


noisemodel documentation built on Oct. 17, 2022, 9:05 a.m.