Skip to contents

Newton / IRLS on standardised columns; missing values take the training mean; the intercept is not penalised. It needs nothing beyond base R and is the default fit_predict of ablate_feature_groups().

Usage

ridge_logistic_fit_predict(x_train, y_train, x_test, l2 = 1, max_iter = 50L)

Arguments

x_train, x_test

Numeric matrices (or data frames) with the same columns.

y_train

0/1 outcome of the training rows.

l2

Ridge penalty.

max_iter

Maximum Newton steps.

Value

Predicted probabilities for the rows of x_test.