For example , if the most suitable classifier for the problem is sought , the training dataset is used to train the candidate algorithms , the validation dataset is used to compare their performances and decide which one to take and , finally , the test dataset is used to obtain the performance characteristics such as accuracy , sensitivity , specificity , F-measure , and so on .