GO-V.ORG
As seen in

Affinity propagation

In statistics and data mining, affinity propagation (AP) is a clustering algorithm based on the concept of "message passing" between data points.[src] Unlike clustering algorithms such as -means or -medoids, affinity propagation does not require the number of clusters to be determined or estimated before running the algorithm.[src] Similar to -medoids, affinity propagation finds "exemplars," members of the input set that are representative of clusters.[src]

In statistics and data mining, affinity propagation (AP) is a clustering algorithm based on the concept of "message passing" between data points.[src] Unlike clustering algorithms such as -means or -medoids, affinity propagation does not require the number of clusters to be determined or estimated before running the algorithm.[src] Similar to -medoids, affinity propagation finds "exemplars," members of the input set that are representative of clusters.[src] ==Algorithm== Let through be a set of data points, with no assumptions made about their internal structure, and let be a function that quantifies the similarity between any two points, such that if and only if is more similar to than to .[src] For this example, the negative squared distance of two data points was used i.e.[src] for points and , The diagonal of (i.e.[src] s(i,i) ) is particularly important, as it represents the instance preference, meaning how likely a particular instance is to become an exemplar.[src] When it is set to the same value for all inputs, it controls how many classes the algorithm produces.[src] A value close to the minimum possible similarity produces fewer classes, while a value close to or larger than the maximum possible similarity produces many classes.[src] It is typically initialized to the median similarity of all pairs of inputs.[src] The algorithm proceeds by alternating between two message-passing steps, which update two matrices: The "responsibility" matrix has values that quantify how well-suited is to serve as the exemplar for , relative to other candidate exemplars for .[src] The "availability" matrix contains values that represent how "appropriate" it would be for to pick as its exemplar, taking into account other points' preference for as an exemplar.[src] Both matrices are initialized to all zeroes, and can be viewed as log-probability tables.[src] The algorithm then performs the following updates iteratively: First, responsibility updates are sent around: r(i,k) \gets s(i,k) - \max_{k' \neq k}{ \left\{ a(i,k') + s(i,k') \right\} } Then, availability is updated per a(i,k) \gets \min { \left( 0, r(k,k) + \sum_{i' \not\in \{i,k\}} \max(0, r(i',k)) \right) } \quad \text{ for } i \neq k and a(k,k) \leftarrow \sum_{i' \neq k} \max(0, r(i',k)).[src] Iterations are performed until either the cluster boundaries remain unchanged over a number of iterations, or some predetermined number (of iterations) is reached.[src] The exemplars are extracted from the final matrices as those whose 'responsibility + availability' for themselves is positive (i.e.[src] (r(i,i) + a(i,i)) > 0 ).[src] ==Applications== The inventors of affinity propagation showed it is better for certain computer vision and computational biology tasks, e.g.[src] clustering of pictures of human faces and identifying regulated transcripts, than -means, even when -means was allowed many random restarts and initialized using PCA.[src] A study comparing affinity propagation and Markov clustering on protein interaction graph partitioning found Markov clustering to work better for that problem.[src] A semi-supervised variant has been proposed for text mining applications.[src] Another recent application was in economics, when the affinity propagation was used to find some temporal patterns in the output multipliers of the US economy between 1997 and 2017.[src] ==Software== A Java implementation is included in the ELKI data mining framework.[src] A Julia implementation of affinity propagation is contained in Julia Statistics's Clustering.jl package.[src] A Python version is part of the scikit-learn library.[src] An R implementation is available in the "apcluster" package.[src] ==References==[src]

30 sentences · 30 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Affinity propagation." encyclopegia.org, 2026, https://encyclopegia.org/wiki/affinity-propagation. Accessed 06 December 2026.

Chicago

"Affinity propagation." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/affinity-propagation.

APA

encyclopegia.org. (2026). Affinity propagation. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/affinity-propagation

Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1369581699 · 0.5 · snapshot enwiki-001369581699

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.