Usage Save and put your features in a Tensor [idx_layer, idx_tokens (t), feature] first. Run calculation_MI.py and plot_MI.ipynb respectively then. Idx Selection In CV tasks, Mid Layer is recommended due to its balance between low-level and high-level pattern. Reference MINE R-MeeTo