Non regularized and regularized cost calculated