title: How do we set ratio in SMOTE to have more positive sample than negative sample?
body: <p>I am trying to use SMOTE to handle imbalanced class data in binary classification, and what I know is: if we use, for example</p>
  
  <pre class="lang-py prettyprint-override"><code>sm = SMOTE(ratio = 1.0, random_state=10)
  
  Before OverSampling, counts of label '1': [78]
  Before OverSampling, counts of label '0': [6266] 
  
  After OverSampling, counts of label '1': 6266
  After OverSampling, counts of label '0': 6266
  </code></pre>
  
  <p>for case where class 1 is minority, it will result in 50:50 number of class 0 and 1</p>
  
  <p>and </p>
  
  <pre class="lang-py prettyprint-override"><code>sm = SMOTE(ratio = 0.5, random_state=10)
  
  Before OverSampling, counts of label '1': [78]
  Before OverSampling, counts of label '0': [6266] 
  
  After OverSampling, counts of label '1': 3133
  After OverSampling, counts of label '0': 6266
  </code></pre>
  
  <p>will result class 1 to be halved size of class 0. </p>
  
  <p>My question:</p>
  
  <p>how do we set the ratio to obtain more class 1 than class 0, for instance 75:25? </p>