16.20 - Example: Function Mapping Definition with Multiple Variable Substitutions - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24
The function mapping definition usr_SVMSparse specifies the following variable substitutions:
  • AttributeColumn is substituted for AttributeNameColumn
  • LabelColumn is substituted for ResponseColumn
  • ValueColumn is substituted for AttributeValueColumn

If the parameter AttributeNameColumn is specified during function processing, AttributeColumn is substituted for function processing. Similarly, if ResponseColumn is specified during function processing, LabelColumn is used. If AttributeValueColumn is specified during function processing, ValueColumn is used.

CREATE FUNCTION MAPPING usr_SVMSparse
FOR SparseSVMTrainer SERVER TD_SERVER_DB.coprocessor
USING
InputTable IN TABLE ,
ModelTable OUT TABLE ,
IDColumn ,
SampleIdColumn ,
AttributeColumn(AttributeNameColumn) ,
LabelColumn(ResponseColumn),
ValueColumn(AttributeValueColumn),
HashProjection , "Hash" , HashBuckets ,
Cost , Bias , ClassWeights ,
MaxStep ,
Epsilon , Seed , SequenceInputBy
;