Too Long; Didn't Read
Clustering is a technique that involves grouping data based on certain characteristics. Clustering, as a task, falls under the umbrella of unsupervised learning. During inference, the clustering algorithm calculates the similarity between a query vector and the formed clusters (established during training) and assigns the query vector to the closest cluster.