DownloadTrainingPredictions: Download training predictions on a specified data set.

View source: R/TrainingPredictions.R

DownloadTrainingPredictionsR Documentation

Download training predictions on a specified data set.

Description

Download training predictions on a specified data set.

Usage

DownloadTrainingPredictions(
  project,
  predictionId,
  filename,
  encoding = "UTF-8"
)

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.

predictionId

character. ID of the prediction to retrieve training predictions for.

filename

character. Filename of file to save reason codes rows

encoding

character. Optional. Character string A string representing the encoding to use in the output file, defaults to 'UTF-8'.

Value

NULL, but will produce a CSV with a dataframe with out-of-fold predictions for the training data.

Examples

## Not run: 
  projectId <- "59a5af20c80891534e3c2bde"
  predictions <- ListTrainingPredictions(projectId)
  predictionId <- predictions[[1]]$predictionId
  file <- file.path(tempdir(), "myTrainingPredictions.csv")
  DownloadTrainingPredictions(projectId, predictionId, file)

## End(Not run)

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