Compute the elementwise log of the normalization constant (partition function) Z(w)=sum_{y in Y(w)} exp(theta . f(w, y)). The sample space must be discrete and finite. This is a vector with one element for each context w.
scipy.maxentropy.conditionalmodel.fit
scipy.maxentropy.conditionalmodel.logpmf
Enter search terms or a module, class or function name.