latentmi.ksg¶
Functions¶
|
|
|
|
|
|
|
tweaked this to return list of psi(nx) for pointwise estimate |
|
|
|
in my experience this doesn't work in practice for N_dims > 1 |
|
The classic K-L k-nearest neighbor continuous entropy estimator |
|
Mutual information of x and y (conditioned on z if z is not None) |
|
Discrete entropy estimator |
|
The classic K-L k-nearest neighbor continuous entropy estimator for the |
|
Discrete mutual information estimator |
|
here we compute psi(nx) for query points that are not |
|
Module Contents¶
- latentmi.ksg.avgdigamma(points, dvec)[source]¶
tweaked this to return list of psi(nx) for pointwise estimate
- latentmi.ksg.lnc_correction(tree, points, k, alpha)[source]¶
in my experience this doesn’t work in practice for N_dims > 1
- latentmi.ksg.entropy(x, k=3, base=2)[source]¶
The classic K-L k-nearest neighbor continuous entropy estimator x should be a list of vectors, e.g. x = [[1.3], [3.7], [5.1], [2.4]] if x is a one-dimensional scalar and we have four samples
- latentmi.ksg.mi(x, y, z=None, k=3, base=2, alpha=0)[source]¶
Mutual information of x and y (conditioned on z if z is not None) x, y should be a list of vectors, e.g. x = [[1.3], [3.7], [5.1], [2.4]] if x is a one-dimensional scalar and we have four samples
- latentmi.ksg.centropyd(x, y, base=2)[source]¶
The classic K-L k-nearest neighbor continuous entropy estimator for the entropy of X conditioned on Y.
- latentmi.ksg.midd(x, y, base=2)[source]¶
Discrete mutual information estimator Given a list of samples which can be any hashable object