I want to know the relation between training data set, testing data set, and gound truth. I know the meaning of each one separately but I cannot see the relation between them especially ground truth and training data.
Your training data is what you train your classifier on.
You then test the accuracy of your model on your test set.
Ground truth refers to the label for each training sample you have i.e. you know which category/outcome each training sample belongs to