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