weightNorm {ADAPTS}R 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


[Package ADAPTS version 1.0.22 Index]