TD_OneHotEncodingFit Syntax | OneHotEncodingFit - TD_OneHotEncodingFit Syntax - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-06
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢

TD_OneHotEncodingFit Syntax for Dense Input

TD_OneHotEncodingFit (
ON { table | view | (query) } AS InputTable [ PARTITION BY ANY ]
[ ON { table | view | (query) } AS CategoryTable Dimension ]
USING
IsInputDense ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'})
TargetColumn ({'target_column' | 'target_column_range'}[,...])
{
      Approach ('LIST')
      {
         CategoricalValues ('category_i'[,...])
      |
         TargetColumnNames ('targetcolnames_column')
         CategoriesColumn ('category_column')
      }
      |
      Approach ('AUTO')
}
 [ OtherColumnName ('other_column_name' | 'other_column_name_i', ...) ]
 [ CategoryCounts (category_count | category_count_i, ...)]
)

TD_OneHotEncodingFit Syntax for Sparse Input

TD_OneHotEncodingFit (
ON { table | view | (query) } AS InputTable PARTITION BY attribute_column
USING
IsInputDense ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'})
TargetAttributes ('attribute_name'[,...])
[ OtherAttributesNames ('other_attribute_name'[,...])]
AttributeColumn ('attribute_column')
ValueColumn ('value_column_name')
)
You can call this function from:
  • The FROM clause of a SELECT statement
  • As part of a CREATE TABLE statement
  • As part of a CREATE VIEW statement