library(MASS); data(Pima.te)
flr = fast_logistic_regression_stepwise_forward(
Xmm = model.matrix(~ . - type, Pima.te),
ybin = as.numeric(Pima.te$type == "Yes")
)
phat = predict(flr, model.matrix(~ . - type, Pima.te))
Run the code above in your browser using DataLab