-
Notifications
You must be signed in to change notification settings - Fork 12
python计算entropy
Shuang0420 edited this page Jul 20, 2016
·
1 revision
import scipy as sp
from scipy import stats
# calculate the entropy
pk=(0.8,0.2)
entropy=sp.stats.entropy(pk,base=2)
entropy
[[TOC]]