TD_KMeansPredict Function | KMeansPredict | Teradata Vantage - TD_KMeansPredict - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-07-09
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢

TD_KMeansPredict uses the k-means algorithm to predict the target class of unseen or new data.

The k-means algorithm calculates the distance between data points to determine the number of groups in a dataset based on the data point clusters.

TD_KMeansPredict function follows this process:

  1. Select the number of clusters (K).
  2. Initialize the centroids.
  3. Assign training data points to clusters based on their proximity to the different clusters
  4. Recalculate centroids.
  5. Repeat the process until the cluster assignments do not change a lot.
  6. Use k-means algorithm to predict the cluster assignments of unseen/test data.