Skip to content

Instantly share code, notes, and snippets.

@inti
inti / mutual_info.py
Created May 5, 2020 22:00 — forked from naught101/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