model_blr: Binary logistic regression

Description Usage Arguments Details Value

View source: R/def.R

Description

Defines a binary logistic regression task

Usage

1
model_blr(y, nonneg = FALSE, balanced = FALSE)

Arguments

y

n-by-1 factor with two levels

nonneg

set to TRUE to enforce non-negativity constraints on the weights (default: FALSE)

balanced

boolean specifying whether the balanced model is being trained (default: FALSE)

Details

The binary logistic regression objective function is defined as

-\frac{1}{n} ∑_i y_i s_i - \log( 1 + \exp(s_i) ) + R(w)

where

s_i = w^T x_i + b

Value

A GELnet task definition that can be combined with gelnet() output


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