def log_probability(self, x):
        lp = x * np.log(self.p) + (1-x) * np.log(1.0-self.p)
        lp = np.nan_to_num(lp)
        return lp
Log probability of x given p
dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/internals/distributions.py/Bernoulli.log_probability