rglz_L2: L2 regularizer

Description Usage Arguments Details Value

View source: R/def.R

Description

Defines an L2 regularizer with optional feature-feature penalties and translation coefficients

Usage

1
rglz_L2(l2, P = NULL, m = NULL)

Arguments

l2

coefficient for the L2-norm penalty

P

p-by-p feature association penalty matrix

m

p-by-1 vector of translation coefficients

Details

The L2 regularizer term is define by

R2(w) = \frac{λ_2}{2} (w-m)^T P (w-m)

Value

A regularizer definition that can be combined with a model definition using + operator


ArtemSokolov/gelnet documentation built on Sept. 13, 2019, 4:01 a.m.