GetPredictionExplanationsMetadataFromJobId: Retrieve the prediction explanations metadata for a model...

View source: R/PredictionExplanations.R

GetPredictionExplanationsMetadataFromJobIdR Documentation

Retrieve the prediction explanations metadata for a model using jobId

Description

Retrieve the prediction explanations metadata for a model using jobId

Usage

GetPredictionExplanationsMetadataFromJobId(project, jobId, maxWait = 600)

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.

jobId

integer. Unique integer identifier (return for example by RequestPredictionExplanations).

maxWait

integer. The maximum time (in seconds) to wait for the model job to complete.

Value

A named list which contains prediction explanation metadata. For more information see GetPredictionExplanationsMetadata.

Examples

## Not run: 
  projectId <- "59a5af20c80891534e3c2bde"
  modelId <- "5996f820af07fc605e81ead4"
  datasets <- ListPredictionDatasets(projectId)
  dataset <- datasets[[1]]
  datasetId <- dataset$id
  model <- GetModel(projectId, modelId)
  jobId <- RequestPredictionExplanations(model, datasetId)
  GetPredictionExplanationsMetadataFromJobId(projectId, jobId)

## End(Not run)

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