Entries from 2013-07-14 to 1 day
Entropy and Information Gain (6.4.1) Try to execute entropy calculation sample. >>> import nltk >>> from nltk_init import * >>> import math >>> def entoropy(labels): ... freqdist = nltk.FreqDist(labels) ... probs = [freqdist.freq(l) for l …