TD_KNN Input - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

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.