Skip to content

Instantly share code, notes, and snippets.

View pietromarchesi's full-sized avatar

Pietro Marchesi pietromarchesi

  • University of Amsterdam
View GitHub Profile
@pietromarchesi
pietromarchesi / mutual_info.py
Created December 23, 2016 12:50 — 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