{"issue":{"pull_request":{"diff_url":"https://github.com/scikit-learn/scikit-learn/pull/402.diff","html_url":"https://github.com/scikit-learn/scikit-learn/pull/402","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/402.patch"},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/e8a78675b2e22a5eda938f7146af689c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e8a78675b2e22a5eda938f7146af689c","url":"https://api.github.com/users/robertlayton","login":"robertlayton","id":800543},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-10T23:29:53Z","comments":52,"closed_at":"2011-11-10T21:52:07Z","url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/402","body":"Mutual Information, adjusted for chance. See [1] for details (specifically, look at the references for detail)\r\n\r\nI 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.\r\n\r\n\r\n[1]  http://en.wikipedia.org/wiki/Adjusted_Mutual_Information\r\n","html_url":"https://github.com/scikit-learn/scikit-learn/issues/402","title":"Adjusted Mutual Information","number":402,"id":1992502,"created_at":"2011-10-19T10:29:48Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/e8a78675b2e22a5eda938f7146af689c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e8a78675b2e22a5eda938f7146af689c","url":"https://api.github.com/users/robertlayton","login":"robertlayton","id":800543},"updated_at":"2011-11-10T23:29:53Z","url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/2702924","body":"That does give me comfort.\r\n\r\n@ogrisel It was my understanding that the AMI is bounded between 0 and 1. However one of the examples in doctests gives a negative score -- and it does with the matlab code as well! Any thoughts?","id":2702924,"created_at":"2011-11-10T23:29:53Z"}}