Skip to contents

fit a regularized logistic regression model (ridge penalty)

Usage

fit_logistic_ridge(x, y, learning_rate = 0.05, n_epochs = 1, lambda = 1)

Arguments

x

predictor matrix (n x p)

y

response matrix (n x 1)

learning_rate

learning rate

n_epochs

number of epoches

lambda

regularization parameter