is this necessary?

you have above:

     if precompute == 'auto':
         precompute = (n_samples > n_features)