determine file type - train or test