predict,PipelineModel-method {SparkR}R Documentation

Make predictions from a model

Description

Makes predictions from a model produced by glm(), similarly to R's predict().

Usage

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

Arguments

object

A fitted MLlib model

newData

DataFrame for testing

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.5.1 Index]