add variation of predict that also returns the confidence

Maybe it would be better to call it `predict2`?