Conjugate gradient + flipped loss function