rglz_nf: Alternative L1 regularizer

Description Usage Arguments Details Value

View source: R/def.R

Description

Defines an L1 regularizer that results in the desired number of non-zero feature weights

Usage

1
rglz_nf(nFeats, d = NULL)

Arguments

nFeats

desired number of features with non-zero weights in the model

d

p-by-1 vector of feature weights

Details

The corresponding regularization coefficient is determined through binary search

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.