DataTable.get_mutual_information(num_bins=10, nrows=None)[source]

Calculates mutual information between all pairs of columns in the DataTable that support mutual information. Logical Types that support mutual information are as follows: Boolean, Categorical, CountryCode, Double, Integer, Ordinal, SubRegionCode, WholeNumber, and ZIPCode

  • num_bins (int) – Determines number of bins to use for converting numeric features into categorical.

  • nrows (int) – The number of rows to sample for when determining mutual info. If specified, samples the desired number of rows from the data. Defaults to using all rows.


A Dataframe containing mutual information with columns column_1, column_2, and mutual_info. Mutual information values are between 0 (no mutual information) and 1 (perfect correlation)

Return type