weightNorm: SVMDECONV helper function

View source: R/onlyDeconAlgorithms.R

weightNormR Documentation

SVMDECONV helper function

Description

Use weightNorm to normalize the SVM weights. Used for SVMDECONV

w1 <- weightNorm(w)

Usage

weightNorm(w)

Arguments

w

The weight vector from fitting an SVM, something like something like t(fit1$coefs) %*% fit1$SV, where fit comes from <- svm(m~B, nu=0.25, kernel="linear"))

Value

a weight vector


ADAPTS documentation built on Sept. 14, 2022, 9:05 a.m.