Description Usage Arguments Details Value Author(s) References See Also Examples
Based on MCMC samples of partitions, computes the posterior expected Variation of Information or the modified Variation of Information which switches the log and expectation.
1 2 3 |
cls |
a matrix of partitions where the posterior expected (modified) Variation of Information is to be evaluated. Each row corresponds to a clustering of |
cls.draw |
a matrix of MCMC samples of partitions. Each row corresponds to a clustering of |
psm |
a posterior similarity matrix, which can be obtained from MCMC samples of clusterings through a call to |
The Variation of Information (VI) between two clusterings is defined as the sum of the entropies minus two times the mutual information. Computation of the posterior expected VI can be expensive, as it requires a Monte Carlo estimate. The modified posterior expected VI, obtained by swapping the log and expectation, is much more computationally efficient as it only depends on the posterior through the posterior similarity matrix. From Jensen's inequality, the problem of finding the optimal partition which minimizing the posterior expected modified VI can be viewed as minimizing a lower bound to the posterior expected VI.
vector of length nrow(cls)
of the posterior expected (modified) VI.
Sara Wade, sara.wade@eng.cam.ac.uk
Meila, M. (2007) Bayesian model based clustering procedures, Journal of Multivariate Analysis 98, 873–895.
Wade, S. and Ghahramani, Z. (2015) Bayesian cluster analysis: Point estimation and credible balls. Submitted. arXiv:1505.03339.
minVI
which locates the partition that minimizes the posterior expected modified VI.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(ex2.data)
x=data.frame(ex2.data[,c(1,2)])
cls.true=ex2.data$cls.true
plot(x[,1],x[,2],xlab="x1",ylab="x2")
k=max(cls.true)
for(l in 2:k){
points(x[cls.true==l,1],x[cls.true==l,2],col=l)}
# Find representative partition of posterior
data(ex2.draw)
psm=comp.psm(ex2.draw)
ex2.VI=minVI(psm,ex2.draw,method=("all"),include.greedy=TRUE)
summary(ex2.VI)
# Compute posterior expected VI for each partition
VI(ex2.VI$cl,ex2.draw)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.