H space for clustering (#tech) University of Pisa A. Micheli 31 • Goal: optimal…
- User
H space for clustering (#tech) University of Pisa A. Micheli 31 • Goal: optimal partitioning of unknown distribution in x-space into regions (clusters) approximated by a cluster center or prototype. • H: a set of vector quantizers x→c(x) (that represent the cluster) continuous space → discrete space • Example of Loss function: measures the vector quantizer optimality • A common loss function would be the squared error distortion: • The average value over the distribution of inputs is the average distortion or reconstruction or quantization error Centroids 𝐿(ℎ(𝐱𝑝 )) = 𝐱𝑝 − 𝑐(𝐱𝑝 ) 2
spiega
- Assistant
Il documento citato discute un approccio al clustering, una tecnica comune nell'ambito del machine learning e dell'analisi dati, mirato alla partizione ottimale di una distribuzione sconosciuta nello spazio delle caratteristiche (x-spazio) in regioni, o cluster. Questo approccio viene studiato all'Università di Pisa da A. Micheli. Lo scopo principale del clustering è raggruppare oggetti simili in insiemi, minimizzando la somiglianza tra oggetti di insiemi differenti e massimizzandola all'interno degli stessi insiemi. In questo contesto, l'insieme H è definito come un insieme di quantizzatori vettoriali, funzioni che mappano lo spazio continuo delle caratteristiche (x) in uno spazio discreto tramite la funzione c(x), che rappresenta il centro del cluster o prototipo.
- User
Clustering Centroids (or prototypes) Partition of data into clusters (subsets of “similar” data): patterns within a valid cluster are more similar to each other than they are to a pattern belonging to a different cluster Def Dip. Informatica H space for clustering (#tech) University of Pisa A. Micheli 31 • Goal: optimal partitioning of unknown distribution in x-space into regions (clusters) approximated by a cluster center or prototype. • H: a set of vector quantizers x→c(x) (that represent the cluster) continuous space → discrete space • Example of Loss function: measures the vector quantizer optimality • A common loss function would be the squared error distortion: • The average value over the distribution of inputs is the average distortion or reconstruction or quantization error Centroids 𝐿(ℎ(𝐱𝑝 )) = 𝐱𝑝 − 𝑐(𝐱𝑝 ) 2 Def Dip. Informatica University of Pisa A. Micheli 35 K-means • The k-means is the simplest and most commonly used algorithm employing a squared error criterion • The k-means algorithm is popular because it is easy to implement, and its in general efficient • However, it has several drawbacks and limitations that we will see after the algorithm presentation…. Dip. Informatica University of Pisa A. Micheli 36 Basic K-means Batch Alg. LBG(Linde, Buzo, Gray) or generalized Lloyd algorithm (1) Choose k cluster centers to coincide with k randomlychosen patterns or k randomly defined points inside the hypervolume containing the pattern set. (2) Assign each pattern to the closest cluster center (the winner). (3) Recompute the cluster centers (geometric centroid, i.e. mean) using the current cluster memberships. (4) If a convergence criterion is not met, go to step 2. E.g. – no (or minimal) reassignment of patterns to new cluster centers, – minimal decrease in squared error. Def Un algortimo di ricerca locale Dip. Informatica Details University of Pisa • Given the cluster centers c1 …cK (vectors of dim n, as x) • (2) For each x the winner is (the nearest prototype): • Now x belong to cluster i* • (3) For each cluster i the new mean (centroid) is: A. Micheli 38 → − = − j n i j i j c x c 2 2 || x || ( ) 2 *( ) argmin i i i x = x − c Euclidian distance Def Def
- Assistant