1.0 - 8.00 - KMeans 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.12

SELECT * FROM KMeans (
  ON { table | view | (query) } AS InputTable
  [ ON { table | view | (query) } AS CentroidsTable ]
  OUT TABLE OutputTable (output_table)
  [ OUT TABLE ClusteredOutput (clustered_output_table) ]
  USING
  [ UnpackColumns ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ InitialSeeds ('starting_cluster' [,...]) ]
  [ NumClusters (number_of_means) [ Seed (seed) ] ]
  [ StopThreshold (threshold) ]
  [ MaxIterNum (max_iterations) ]
) AS alias;
You must specify only one of NumClusters, InitialSeeds, or CentroidsTable. If you specify more than one, the function gives top priority to InitialSeeds, then to NumClusters, and then to CentroidsTable.