Source code for machina.pds.base

[docs]class BasePd(object): """ Base class of probablistic distribution """
[docs] def sample(self, params, sample_shape): """ sampling """ raise NotImplementedError
[docs] def llh(self, x, params): """ log liklihood """ raise NotImplementedError
[docs] def kl_pq(self, p_params, q_params): """ KL divergence between p and q """ raise NotImplementedError
[docs] def ent(self, params): """ entropy """ raise NotImplementedError