predict {SparkR}R Documentation

Make predictions from a model

Description

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

Usage

predict(object, ...)

## 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: 
model <- glm(y ~ x, trainingData)
predicted <- predict(model, testData)
showDF(predicted)

## End(Not run)

[Package SparkR version 1.6.0 Index]