multi_predict.glmnet: Safe predictions for cross-validated glmnet objects

Description Usage Arguments

Description

Safe predictions for cross-validated glmnet objects

Usage

1
2
3
## S3 method for class 'glmnet'
multi_predict(object, new_data, type = c("response",
  "class", "prob"), ..., params = NULL)

Arguments

object

TODO

new_data

TODO

type

TODO

...

Unused. safe_predict() checks that all arguments in ... are evaluated via the ellipsis package. The idea is to prevent silent errors when arguments are mispelled. This feature is experimental and feedback is welcome.

params
  • works with a single value for the penalty. otherwise CV is gonna be inconsistent a wild pain in the rear.

    • works with a vector of values for the penalty

    • in the future will work with a tibble defining a parameter grid


alexpghayes/safepredict documentation built on May 29, 2019, 11:02 p.m.