Compute the log of the normalization constant (partition function) Z=sum_{x in samplespace} p_0(x) exp(params . f(x)). The sample space must be discrete and finite.
scipy.maxentropy.model.expectations
scipy.maxentropy.model.logpmf
Enter search terms or a module, class or function name.