np.random.norm isn't a function, use np.random.normal
Compute pseudo-inverse of kernel matrix if inverse can't be computed