Now rescaling inputs for nearest neighbor classifier.