predict.dataRobotModel: Retrieve model predictions using R's default S3 'predict'...

View source: R/GetPredictions.R

predict.dataRobotModelR 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 dataRobotModel to predict with.

...

list. Additional arguments to pass to Predict

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)

datarobot documentation built on May 29, 2024, 4:36 a.m.