Learn R Programming

datarobot (version 2.8.0)

RequestPredictionsForDataset: Request predictions against a previously uploaded dataset

Description

Request predictions against a previously uploaded dataset

Usage

RequestPredictionsForDataset(project, modelId, datasetId)

Arguments

project

character. Either (1) a character string giving the unique alphanumeric identifier for the project, or (2) a list containing the element projectId with this identifier.

modelId

numeric. The ID of the model to use to make predictions

datasetId

numeric. The ID of the dataset to make predictions against (as uploaded from UploadPredictionDataset)

Value

predictJobId to be used by GetPredictions function to retrieve the model predictions.

Examples

Run this code
# NOT RUN {
  dataset <- UploadPredictionDataset(project, diamonds_small)
  model <- ListModels(project)[[1]]
  modelId <- model$modelId
  predictJobId <- RequestPredictionsForDataset(project, modelId, dataset$id)
  predictions <- GetPredictions(project, predictJobId)
# }

Run the code above in your browser using DataLab