A wrapper provided for convenience around lnr_glm
that sets
family = binomial(link = 'logit')
.
Usage
lnr_logistic(data, formula, ...)
Arguments
- data
A dataframe to train a learner / learners on.
- formula
A regression formula to use inside this learner.
- ...
Any extra arguments that should be passed to the internal model
for model fitting purposes.
Value
A prediction function that accepts newdata
, which returns
predictions for the probability of the outcome being 1/TRUE (a numeric
vector of values, one for each row of newdata
).