1.0 - 8.00 - KNN Syntax - Teradata Vantage

Teradata® Vantage Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.0
8.00
Release Date
May 2019
Content Type
Programming Reference
Publication ID
B700-4003-098K
Language
English (United States)

Version 1.8

SELECT * FROM KNN (
  ON training_table AS TrainingTable
  ON test_table AS TestTable
  [ OUT TABLE OutputTable (output_table) ]
  USING
  K (k)
  ResponseColumn ('response_column')
  IDColumn ('test_id_column')
  DistanceFeatures ({ 'df_column' | df_column_range }[,... ])
  [ VotingWeight (voting_weight) ]
  [ CustomizedDistance ('jar', 'distance_class') ]
  [ ForceMapReduce ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ PartitionBlockSize (partition_block_size) ]
) AS alias;