TD_​TargetEncodingFit

This function takes an input table partitioned by ANY and a category table as Dimension and generates hyperparameters for each unique category in the target columns.

Options

Alpha0Prior
Specify the prior parameter of the CBM_GAUSSIAN_INVERSE_GAMMA encoder method.
AlphaPrior
Specify the prior parameter of the CBM_BETA encoder method.
AlphaPriors (numbers seperated by new line)
Specify the prior parameter of the CBM_DIRICHLET encoder method. The number of values specified in this argument must be equal to NumDistinctResponses value.
Beta0Prior
Specify the prior parameter of the CBM_GAUSSIAN_INVERSE_GAMMA encoder method.
BetaPrior
Specify the prior parameter of the CBM_BETA encoder method.
DefaultValues (numbers seperated by new line)
Specify the target encoded value/values to use when category is not found during transform. One value for all target column or multiple value for multiple target column.
EncoderMethod
Specifies the EncoderMethod as CBM_BETA, CBM_DIRICHLET, CBM_GAUSSIAN_INVERSE_GAMMA if the response is following binomial (0 or 1) or multinomial (1, ..., k) or Gaussian (continous numeric values) respectively.
NumDistinctResponses
Specify the number of distinct values present in the ResponseColumn. Required if EncoderMethod is CBM_DIRICHLET, otherwise not required.
ResponseColumn
Specify the columns which contains the response values.
Output Schema
Output Schema, if Volatile is true then use user login as the schema.
Output Table
Output Table
VAL Location
VAL Location
TargetColumns
Specify the columns which contains the categorical values to be encoded.
Volatile
Specifies whether the table should be a VOLATILE table. If true, then the table is automatically deleted, otherwise it is users responsibility to remove or clean it up for space.
U0Prior
Specify the prior parameter of the CBM_GAUSSIAN_INVERSE_GAMMA encoder method.
V0Prior
Specify the prior parameter of the CBM_GAUSSIAN_INVERSE_GAMMA encoder method.

Input Ports

Icon
Connection to a Teradata Database Instance
Icon
Specifies the table containing the input categorical target columns.
Icon
Specifies the table containing the unique categories and their counts for each target columns.

Output Ports

Icon
output of TD_TargetEncodingFit

Nodes

Extensions

Links