Learn R Programming

datarobot (version 2.18.6)

predict.dataRobotModel: 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 dataRobotModel
predict(object, ...)

Arguments

object

dataRobotModel. The object of class dataRobotModel to predict with.

...

list. Additional arguments to pass to Predict

See Also

Predict

Examples

Run this code
if (FALSE) {
   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)
}

Run the code above in your browser using DataLab