title: How to correct Python Attribute error: 'SMOTE' object has no attribute 'fit_sample'
body: <p>Hello: I am trying to run the following code:</p>
  <pre><code>os = SMOTE(random_state=0)
  X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=0)
  columns = X_train.columns
  os_data_X,os_data_y=os.fit_sample(X_train, y_train)
  </code></pre>
  <p>But get the error message described above - AttributeError: 'SMOTE' object has no attribute 'fit_sample'</p>
  <p>I am using imbalanced-learn version 0.8.0 and scikit-learn version 0.24.1.</p>
  <p>Thank you for any suggestions you can provide. I have imbalanced classes and am trying to adjust the sampling.</p>