Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

LogisticLossClassifier

Logistic Loss Classifier


Description

Find the linear classifier which minimizing the logistic loss on the training set, optionally using L2 regularization.

Usage

LogisticLossClassifier(X, y, lambda = 0, intercept = TRUE, scale = FALSE,
  init = NA, x_center = FALSE, ...)

Arguments

X

Design matrix, intercept term is added within the function

y

Vector with class assignments

lambda

Regularization parameter used for l2 regularization

intercept

TRUE if an intercept should be added to the model

scale

If TRUE, apply a z-transform to all observations in X and X_u before running the regression

init

Starting parameter vector for gradient descent

x_center

logical; Whether the feature vectors should be centered

...

additional arguments

Value

S4 object with the following slots

w

the weight vector of the linear classifier

classnames

vector with names of the classes

See Also


RSSL

Implementations of Semi-Supervised Learning Approaches for Classification

v0.9.3
GPL (>= 2)
Authors
Jesse Krijthe [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.