
Batch-GD logistic fit used by the OvR / OvO reductions (morie.fn grovr)
Source:R/geron_train_native.R
morie_geron_train_logreg.RdPrepends a bias column, starts at zero, and runs n_iter full-batch
gradient steps on the mean log-loss.
Examples
morie_geron_train_logreg(X = c(1, 2, 3, 4, 5, 6, 7, 8), y = 5L)
#> [1] 800.25 800.25 1600.50 2400.75 3201.00 4001.25 4801.50 5601.75 6402.00