Optimizing the Training Set to Improve Model Specificity on Target Domains