Python's implementation of Mutual Information

后端 未结 2 1951
闹比i
闹比i 2021-02-05 18:45

I am having some issues implementing the Mutual Information Function that Python\'s machine learning libraries provide, in particular : sklearn.metrics.mutual_info_score(labels

2条回答
  •  猫巷女王i
    2021-02-05 19:30

    The code below should provided a result: 0.00011053558610110256

    c=np.concatenate([np.ones(49), np.zeros(27652), np.ones(141), np.zeros(774106) ])
    t=np.concatenate([np.ones(49), np.ones(27652), np.zeros(141), np.zeros(774106)])
    
    computeMI(c,t)
    

提交回复
热议问题