ENH: Don't calculate n_samples twice for over/undersample.