predict.elnet.madlib: Predict using the regression result of elastic net...

Description Usage Arguments Value Author(s) See Also Examples

Description

Prediction from models fit by madlib.elnet

Usage

1
2
## S3 method for class 'elnet.madlib'
predict(object, newdata, type = c("response", "prob"), ...)

Arguments

object

The result of madlib.elnet

newdata

A db.obj object, which wraps the data in the database.

type

A string, default is "response". The other option is "prob". The prediction for "gaussian"/"linear" family of madlib.elnet result is always for the dependent variable. The prediction for "binomial"/"logistic" family is TRUE/FALSE values for "response", and probabilities of TRUE for "prob".

...

Extra parameters. Not implemented yet.

Value

A db.Rquery object, which contains the SQL query to compute the prediction. One can use the function lk to look at the values.

Author(s)

Author: Predictive Analytics Team at Pivotal Inc.

Maintainer: Frank McQuillan, Pivotal Inc. fmcquillan@pivotal.io

See Also

madlib.elnet Wrapper for MADlib elastic net regularization.

predict.lm.madlib and predict.logregr.madlib produce predictions for linear and logistic models.

Examples

1
## see the examples in madlib.elnet

PivotalR documentation built on March 13, 2021, 1:06 a.m.