Learn R Programming

iai (version 1.4.0)

get_prediction_constant: Return the constant term in the prediction in the trained learner

Description

Julia Equivalent: IAI.get_prediction_constant

Usage

get_prediction_constant(lnr, ...)

Arguments

lnr

The learner to query.

...

If a GLMNet learner, the index of the fit in the path to query, defaulting to the best fit if not supplied.

IAI Compatibility

Requires IAI version 1.1 or higher.

Examples

Run this code
# NOT RUN {
iai::get_prediction_constant(lnr)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab