<p dir="auto">sklearn.metrics.mutual_info_score [<a href="https://github.com/scikit-learn/scikit-learn/blob/a24c8b46/sklearn/metrics/cluster/supervised.py#L530">Source</a>] does not calculate the mutual information correctly. For example: mutual_info_score([0, 0, 1], [0, 1, 1]) yields 0.17442 while it should have been 0.25163.</p>
<p dir="auto">Blame: Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scikit-learn/scikit-learn/commit/a3dacb64340b54207b2ecc2b17ee180cfb884cd6/hovercard" href="https://github.com/scikit-learn/scikit-learn/commit/a3dacb64340b54207b2ecc2b17ee180cfb884cd6"><tt>a3dacb6</tt></a> replaced np.log2 with np.log.</p>
<p dir="auto">Fix: replacing the log_e with log2 repairs sklearn.metrics.mutual_info_score</p>
<p dir="auto">In Scikit-learn page, "Python 3.x support" in Coding guidelines section is written twice.<br>
<a href="http://scikit-learn.org/stable/developers/index.html#python-3-x-support" rel="nofollow">http://scikit-learn.org/stable/developers/index.html#python-3-x-support</a></p>