2016-11-02
What happens when you want to cluster your data, but the number of clusters is unknown? While some approaches involve fitting several models with a varying number of clusters to your data and comparing model fit statistics, the Bayesian approach is to specify a model which is allowed to dynamically grow the number of clusters as the complexity of the data warrants.
The Infinite Relational Model is the prototypical example of such a model (Kemp et al. 2006).
For this last project, a simple version of Charles Kemp’s Infinite Relational Model (IRM) was coded in irm.R to co-cluster rows and columns of a simple 2-dimensional binary relation.
As a sanity check, the toy matrix from the original paper is used:
This successfully finds the clusters of rows and columns that correspond to the original paper.