Question: Testing the model on TSPLIB example
saraalemadi opened this issue · 1 comments
saraalemadi commented
Hi,
Thanks for sharing your code. I was wondering how can I test the trained model on a single example from TSPLIB dataset (file with an extension .tsp rather than .txt).
Thanks
-Sara
chaitjo commented
Hi @saraalemadi, thanks for your interest - you will have to create your own readers for files in that format. In the least case, you will need to read the city coordinates from the new files into a torch tensor of shape (num_cities, 2).