MCPcopy Create free account
hub / github.com/codewithzichao/Machine_Learning_Code / calcEpxy

Method calcEpxy

MaxEnt/Max_Entropy.py:60–83  ·  view source on GitHub ↗

计算特征函数f(x, y)关于模型P(Y|X)与经验分布P_(X, Y)的期望值(P后带下划线“_”表示P上方的横线 程序中部分下划线表示“|”,部分表示上方横线,请根据具体公式自行判断,) 即“6.2.2 最大熵模型的定义”中第二个期望(83页最上方的期望) :return:

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

maxEntropyTrainMethod · 0.95

Calls 1

calcPwy_xMethod · 0.95

Tested by

no test coverage detected