def create_basis(self):
        ibasis = np.eye(self.B)

        # Typically we don't allow the instantaneous connection
        # since this is no longer a generative model
        if not self.allow_instantaneous:
            ibasis = np.vstack((np.zeros((1,self.B)), ibasis))

        assert ibasis.shape in (self.L, self.B)

        # Normalize so that the interpolated basis has volume 1
        if self.norm:
            ibasis /= (self.dt * np.sum(ibasis, axis=0))

        return ibasis
dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/utils/basis.py/IdentityBasis.create_basis/operator `==` -> `in`