datapointwise_information_gains#

tangles.util.entropy.datapointwise_information_gains(data: ndarray, feats: ndarray) ndarray#

Compute information gains between feats and every single column of data.

Parameters#

datanp.ndarray

The data.

featsnp.ndarray

A matrix with partition-indicator-vectors in its columns. Each column represents a feature.

Returns#

np.ndarray

A matrix with one column per feature and one row per column of data.