Confidence measures for deep learning in domain adaptation