Learn R Programming

datarobot (version 2.18.6)

GetValidMetrics: Retrieve the valid fitting metrics for a specified project and target

Description

For the response variable defined by the character string target and the project defined by the parameter project, return the vector of metric names that can be specified for fitting models in this project. This function is intended for use after SetupProject has been run but before SetTarget, allowing the user to specify valid non-default values for the metric parameter.

Usage

GetValidMetrics(project, target)

Value

Character vector containing the names of the metric values that are valid for a subsequent call to the SetTarget function.

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.

target

character. String giving the name of the response variable to be predicted by all project models.

Examples

Run this code
if (FALSE) {
  projectId <- "59a5af20c80891534e3c2bde"
  GetValidMetrics(projectId, "targetFeature")
}

Run the code above in your browser using DataLab