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

View source: R/Features.R

BatchFeaturesTypeTransformR Documentation

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
)

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.

Value

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

Examples

## Not run: 
  projectId <- "59a5af20c80891534e3c2bde"
  BatchFeaturesTypeTransform(projectId,
                             parentNames = c("var1", "var2"),
                             variableType = VariableTransformTypes$Categorical,
                             suffix = "_transformed")

## End(Not run)

datarobot documentation built on May 29, 2024, 4:36 a.m.