scipy.maxentropy.conditionalmodel.lognormconst

conditionalmodel.lognormconst()
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.