Learn R Programming

datarobot (version 2.8.0)

GetRocCurve: Retrieve ROC curve data for a model for a particular data partition (see DataPartition)

Description

Retrieve ROC curve data for a model for a particular data partition (see DataPartition)

Usage

GetRocCurve(model, source = DataPartition$VALIDATION)

Arguments

model

An S3 object of class dataRobotModel like that returned by the function GetModel, or each element of the list returned by the function ListModels.

source

character. Data partition to retrieve ROC curve data.Default is

Value

list with the following components:

  • source. Character: data partition for which ROC curve data is returned (see DataPartition).

  • negativeClassPredictions. Numeric: example predictions for the negative class.

  • rocPoints. data.frame: each row represents pre-calculated metrics (accuracy, f1_score, false_negative_score, true_negative_score, true_positive_score, false_positive_score, true_negative_rate, false_positive_rate, true_positive_rate, matthews_correlation_coefficient, positive_predictive_value, negative_predictive_value, threshold) associated with different thresholds for the ROC curve.

  • positiveClassPredictions. Numeric: example predictions for the positve class.

Examples

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

Run the code above in your browser using DataLab