将每个K值出现次数都加1,避免未出现的特征为0问题

ϕj=i=1m1{z(i)=j}+1m+kj=1kϕj=1 \begin{aligned} &\phi_j = \frac{\sum_{i=1}^m 1\{ z^{(i)}=j\} +1}{ m + k} \\ &\sum_{j=1}^k \phi_j = 1 \end{aligned}

results matching ""

    No results matching ""