add variation of predict that also returns the confidence

I have it called `predict_with_confidence`.

Maybe it would be better to call it `predict2`?