scikit-learn/scikit-learn — pull request #402 by robertlayton (2011-10-19 10:29:48+00:00)
Title: Adjusted Mutual Information

Mutual Information, adjusted for chance. See [1] for details (specifically, look at the references for detail)

I have tested this against the Matlab code, and it works! Took me a while, as I had log for entropy and log2 for Expected Mutual Information (should be the other way around). I think that the ```_expected_mutual_information``` can be optimised, but I went with "get it right" first.

[1] http://en.wikipedia.org/wiki/Adjusted_Mutual_Information

**TODO**
- Tests
- Docs