Skip to contents

fit a logistic regression model

Usage

fit_logistic(x, y, learning_rate = 0.05, n_epochs = 1)

Arguments

x

predictor matrix (n x p)

y

response matrix (n x 1)

learning_rate

learning rate

n_epochs

number of epoches