Learn R Programming

datarobot (version 2.18.6)

BatchFeaturesTypeTransform: Create new features by transforming the type of an existing ones.

Description

Supports feature transformations, including:

  • text to categorical

  • text to numeric

  • categorical to text

  • categorical to numeric

  • numeric to categorical

Usage

BatchFeaturesTypeTransform(
  project,
  parentNames,
  variableType,
  prefix = NULL,
  suffix = NULL,
  maxWait = 600
)

Value

a list of all the features, after transformation. See GetFeaturelist

for details.

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.

parentNames

character. Character vector of variable names to be transformed.

variableType

character. The new type that the columns should be converted to. See VariableTransformTypes.

prefix

character. Optional. The string to preface all the transformed features. Either prefix or suffix or both must be provided.

suffix

character. Optional. The string that will be appended at the end to all the transformed features. Either prefix or suffix or both must be provided.

maxWait

integer. Optional. The maximum amount of time (in seconds) to wait for DataRobot to finish processing the new column before providing a timeout error.

Examples

Run this code
if (FALSE) {
  projectId <- "59a5af20c80891534e3c2bde"
  BatchFeaturesTypeTransform(projectId,
                             parentNames = c("var1", "var2"),
                             variableType = VariableTransformTypes$Categorical,
                             suffix = "_transformed")
}

Run the code above in your browser using DataLab