This is documentation for an old release of SciPy (version 0.9.0). Read this page in the documentation of the latest stable release (version 1.15.1).

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.

Previous topic

scipy.maxentropy.conditionalmodel.fit

Next topic

scipy.maxentropy.conditionalmodel.logpmf

This Page