Learn R Programming

datarobot (version 2.8.0)

GetReasonCodesInitializationFromJobId: Retrieve the reason codes initialization for a model using jobId

Description

Reason codes initializations are a prerequisite for computing reason codes, and include a sample what the computed reason codes for a prediction dataset would look like.

Usage

GetReasonCodesInitializationFromJobId(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 pointing to the reason codes job (returned for example by RequestReasonCodesInitialization.)

maxWait

Integer, The maximum time (in seconds) to wait for the model job to complete

Value

A named list which contains:

  • projectId. Character id of the project the feature belonges to.

  • modelId. Character string giving the unique alphanumeric model identifier.

  • reasonCodesSample. list which contains sample of reason codes. Each element of the list is information about reason codes for one data row. For more information see GetReasonCodesRows.

Examples

Run this code
# NOT RUN {
  projectId <- "59a5af20c80891534e3c2bde"
  modelId <- "5996f820af07fc605e81ead4"
  model <- GetModel(projectId, modelId)
  jobId <- RequestReasonCodesInitialization(model)
  GetReasonCodesInitializationFromJobId(projectId, jobId)
# }

Run the code above in your browser using DataLab