I've never done the train but it is certainly very popular. I've done what the above poster did and go around with a guide to the salt flats, Quebrada de Humahuaca, S.A. de los Cobres, and the general area, and I thought that was nice because you can stop and get out and explore whenever you feel like it.