s2Params {s2net}R Documentation

Hyper-parameter wrapper for s2net

Description

This is a very simple function that collapses the input parameters into a named vector to supply to C++ methods.

Usage

s2Params(lambda1, lambda2 = 0, gamma1 = 0, gamma2 = 0, gamma3 = 0)

Arguments

lambda1

elastic-net regularization parameter - l_1 norm.

lambda2

elastic-net regularization parameter - l_2 norm.

gamma1

s2net weight hyper-parameter.

gamma2

s2net covariance hyper-parameter (between 1 and Inf).

gamma3

s2net shift hyper-parameter (between 0 and 1).

Value

Returns a named vector of S3 class s2Params.

See Also

s2Data, s2Fista


[Package s2net version 1.0.7 Index]