Adapting pre-trained deep learning models to new and unknown environments is a difficult challenge in underwater acoustic localization.Implied uncertainty of pre-trained models is higher in environments with more mismatch between training and test data.A method is proposed to partition test samples into certain and uncertain sets and improve labeling for uncertain samples.The approach eliminates the need for labeled data from the target environment and results in significant improvements in model prediction accuracy.