TD_KNN Input - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The function accepts only two ON clauses for input tables, where the Test table uses the PARTITION BY ANY clause, and the training table uses the dimension clause. Both the test and training tables are required.

TrainingTable Schema

Column Data Type Description
IDColumn BYTEINT,SMALLINT,INTEGER,BIGINT The unique identifier of the training table.
InputColumns NUMERIC The columns that the function uses to compute the distance between test data points and the training data points. The test table must have corresponding columns in the training table with name and datatype.
ResponseColumn NUMERIC (regression), INTEGER (classification) The numeric value of the target variable used for prediction in KNN-based regression or classification.

TestTable Schema

Column Data Type Description
IDColumn BYTEINT,SMALLINT,INTEGER,BIGINT The unique identifier of the test data object.
InputColumns NUMERIC The columns that the function uses to compute the distance between test data points and the training data points. The training table must have corresponding columns in the test table with name and datatype.