View source: R/PredictionDatasets.R
| RequestPredictions | R Documentation | 
Prediction intervals can now be returned for predictions with datetime models.
Use 'includePredictionIntervals = TRUE' in calls to Predict or RequestPredictions.
For each model, prediction intervals estimate the range of values DataRobot expects actual values
of the target to fall within. They are similar to a confidence interval of a prediction, but are
based on the residual errors measured during the backtesting for the selected model.
RequestPredictions(
  project,
  modelId,
  datasetId,
  includePredictionIntervals = NULL,
  predictionIntervalsSize = NULL
)
| 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
 | 
| includePredictionIntervals | logical. Optional. Should prediction intervals bounds should be part of predictions? Only available for time series projects. See "Details" for more info. | 
| predictionIntervalsSize | numeric. Optional. Size of the prediction intervals, in percent. Only available for time series projects. See "Details" for more info. | 
predictJobId to be used by GetPredictions function to retrieve the model predictions.
## Not run: 
  dataset <- UploadPredictionDataset(project, diamonds_small)
  model <- ListModels(project)[[1]]
  modelId <- model$modelId
  predictJobId <- RequestPredictions(project, modelId, dataset$id)
  predictions <- GetPredictions(project, predictJobId)
  # Or, if prediction intervals are desired (datetime only)
  predictJobId <- RequestPredictions(datetimeProject,
                                     DatetimeModelId,
                                     includePredictionIntervals = TRUE,
                                     predictionIntervalsSize = 100)
  predictions <- GetPredictions(datetimeProject, predictJobId, type = "raw")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.