R/SL.glmnet.interaction.R
predict.SL.glmnet.interaction.Rd
Prediction for the glmnet wrapper.
# S3 method for SL.glmnet.interaction
predict(
object,
newdata,
remove_extra_cols = TRUE,
add_missing_cols = TRUE,
...
)
Result object from SL.glmnet
Dataframe or matrix that will generate predictions.
Remove any extra columns in the new data that were not part of the original model.
Add any columns from original data that do not exist in the new data, and set values to 0.
Any additional arguments (not used).
SL.glmnet