predict.GlmnetModelDefinition: Generate predictions for a glmnet model.

Description Usage Arguments Details Value Author(s) See Also

Description

Generate predictions for a glmnet model.

Usage

1
2
## S3 method for class 'GlmnetModelDefinition'
predict(object, data, verbose = FALSE, ...)

Arguments

object

An object from ModelDefinition.

data

A dataframe that will be used to generate predictions.

verbose

If TRUE then prediction information will be printed to the console.

...

Extra unused arguments.

Details

This function generates predictions using the data provided. If columns in the model matrix are missing then columns of zeros will be inserted and a warning will be generated. Typically transformations are applied using GetTransforms before predict is applied.

Value

A list is returned with elements as follows:

model.matrix

The model matrix used to calculate predicted values.

predicted

Predicted values.

lambda

The lambda value used by glmnet.

missing.cols

Column names that are missing from the prediction matrix.

Author(s)

Justin Hemann <support@causata.com>

See Also

ModelDefinition, glmnet, model.matrix, glmnet, GetTransforms.


Causata documentation built on May 2, 2019, 3:26 a.m.