View source: R/GetPredictions.R
predict.dataRobotModel | R Documentation |
predict
method.Retrieve model predictions using R's default S3 predict
method.
## S3 method for class 'dataRobotModel'
predict(object, ...)
object |
dataRobotModel. The object of class |
... |
list. Additional arguments to pass to |
Predict
## Not run:
trainIndex <- sample(nrow(iris) * 0.7)
trainIris <- iris[trainIndex, ]
testIris <- iris[-trainIndex, ]
project <- StartProject(trainIris, "iris", target = "Petal_Width", wait = TRUE)
model <- GetRecommendedModel(project)
predictions <- predict(model, testIris)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.