Calculating Mutual Information in Python
A while ago, I was making features from text documents and I wanted to check which n-grams correlated with the target classification. A common way to achieve this is by calculating the mutual information between the n-gram and the classification. In this blog post, I explain how you can calculate…