Use RequestPredictionExplanations instead.
RequestReasonCodes(model, datasetId, maxCodes = NULL,
thresholdLow = NULL, thresholdHigh = NULL)
An S3 object of class dataRobotModel like that returned by the function GetModel, or each element of the list returned by the function ListModels.
Character string. Id of the prediction dataset for which reason codes are requested
integer (optional) The maximum number of reason codes to supply per row of the dataset, default: 3.
numeric (optional) The lower threshold, below which a prediction must score
in order for reason codes to be computed for a row in the dataset. If neither
threshold_high
nor threshold_low
is specified, reason codes will be computed
for all rows.
numeric (optional) The high threshold, above which a prediction must score
in order for reason codes to be computed. If neither threshold_high
nor
threshold_low
is specified, reason codes will be computed for all rows.
job Id
# NOT RUN {
projectId <- "59a5af20c80891534e3c2bde"
modelId <- "5996f820af07fc605e81ead4"
datasets <- ListPredictionDatasets(projectId)
dataset <- datasets[[1]]
datasetId <- dataset$id
model <- GetModel(model, datasetId)
RequestReasonCodes(model, datasetId)
# }
Run the code above in your browser using DataLab