Skip to content

Instantly share code, notes, and snippets.

@Montgoner
Montgoner / mutual_info.py
Last active February 1, 2017 23:31 — forked from GaelVaroquaux/mutual_info.py
Estimating entropy and mutual information with scikit-learn
'''
Non-parametric computation of entropy and mutual-information
Adapted by G Varoquaux for code created by R Brette, itself
from several papers (see in the code).
These computations rely on nearest-neighbor statistics
'''
import numpy as np