weightNorm: SVMDECONV helper function

Description Usage Arguments Value

View source: R/onlyDeconAlgorithms.R

Description

Use weightNorm to normalize the SVM weights. Used for SVMDECONV

w1 <- weightNorm(w)

Usage

1

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


yxinyi2/ADAPTS1.0.3 documentation built on Aug. 5, 2020, 12:09 a.m.