For training data, we compute tf -iAf based on known authors of each document, however in test data, we do not have access to the authors of each document.
we set tf -iAf of the test data as tf of the test data weighted by iAf of the training data.