Code covered by the BSD License  

Highlights from
Normalized Mutual Information


4.2 | 4 ratings Rate this file 68 Downloads (last 30 days) File Size: 1.45 KB File ID: #29047

Normalized Mutual Information



Fully vectorized implementation normalized mutual information

| Watch this File

File Information

Normalized mutual information is often used for evaluating clustering result, information retrieval, feature selection etc. This is a optimized implementation of the function which has no for loops.


This file inspired Information Theory Toolbox.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
15 Dec 2014 Ori

Why is it important to verify the integrity of results, i.e. length(labels)==length(results)?

Isn't it possible to use nmi for clustering with k that is different from number of labels?

I changed the script for my use so that it will accept this. should I upload?

11 Sep 2014 Jianxiong Chen

please add more comments, especially for the inputs. Thanks

01 Jul 2014 bao dinh


08 Nov 2013 Kelvin Wong

It doesn't work for large matrix as it rans out of memory in line 16 and 17.

11 Aug 2013 yang  
29 Dec 2011 Eric Chen

grateful if more comments provided

21 Nov 2011 Artur Abdullin

Good job, I used your function to validate mine :). Sometime in research you cannot trust even yourself.

07 Sep 2011 Md. Ali Hossain

Can you give a detailed docomented .m file so that we can have a easy understanding of NMI.


23 Jun 2011 NR P

I agree, an example... and a little description of the inputs would be strongly appreciated! Thank you!

23 Jun 2011 Zhi

Could you provide some examples of running your code to prove it is correct?

Contact us