predict.dataRobotModel {datarobot} | R Documentation |
Retrieve model predictions using R's default S3 predict
method.
Description
Retrieve model predictions using R's default S3 predict
method.
Usage
## S3 method for class 'dataRobotModel'
predict(object, ...)
Arguments
object |
dataRobotModel. The object of class |
... |
list. Additional arguments to pass to |
See Also
Predict
Examples
## 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)
[Package datarobot version 2.18.6 Index]