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