improved script for getting training stats, added mins, maxes for rescaling