def get_ll(self, x, batch_size=10):
        inds = range(x.shape[0])
        n_batches = int(numpy.ceil(float(len(inds)) / batch_size))

        lls = []
        for i in range(n_batches):
            lls.extend(self.lpdf(x[inds[i::n_batches]]))

        return numpy.array(lls).mean()
Evaluates the log likelihood of a set of datapoints with respect to the
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/distributions/parzen.py/ParzenWindows.get_ll