predict,PipelineModel-method {SparkR} | R Documentation |
Makes predictions from a model produced by glm(), similarly to R's predict().
## S4 method for signature 'PipelineModel' predict(object, newData)
object |
A fitted MLlib model |
newData |
DataFrame for testing |
DataFrame containing predicted values
## Not run:
##D model <- glm(y ~ x, trainingData)
##D predicted <- predict(model, testData)
##D showDF(predicted)
## End(Not run)