predict,PipelineModel-method {SparkR}R Documentation

Fits a generalized linear model, similarly to R's glm().

Description

Fits a generalized linear model, similarly to R's glm().

Usage

## S4 method for signature 'PipelineModel'
predict(object, newData)

Arguments

newData

DataFrame for testing

model

A fitted MLlib model

Value

DataFrame containing predicted values

Examples

## Not run: 
##D model <- glm(y ~ x, trainingData)
##D predicted <- predict(model, testData)
##D showDF(predicted)
## End(Not run)

[Package SparkR version 1.4.0 Index]