title: Name 'RandomUnderSampler' is not defined
body: <p>I'm trying to use <code>RandomUnderSampler</code>. I have correctly installed the <code>imblearn</code> module. But still getting the error: "Name 'RandomUnderSampler" is not defined`. Any specific reason for this? Can someone please help </p>
  
  <pre><code>from imblearn.under_sampling import RandomUnderSampler
  
  #Random under-sampling and over-sampling with imbalanced-learn
  def random_under_sampling(X,Y):
  
      rus = RandomUnderSampler(return_indices=True)
      X_rus, y_rus, id_rus = rus.fit_sample(X, Y)
  
      print('Removed indexes:', id_rus)
  
      plot_2d_space(X_rus, y_rus, 'Random under-sampling')
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/TfHPN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TfHPN.png" alt="enter image description here"></a></p>
  
  <p>The actual method name</p>
  
  <p><a href="https://i.stack.imgur.com/JsGvU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JsGvU.png" alt="enter image description here"></a></p>
  
  <p>This is where I called my method
  <a href="https://i.stack.imgur.com/MZuKx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MZuKx.png" alt="enter image description here"></a></p>