Classification performance is highly sensitive to the number of minority samples generated. Simply balancing the dataset (making the number of minority and majority samples equal) is often not the optimal choice because it can distort the density near the decision boundary.
To optimize this, use the proportion parameter available in almost all implemented techniques. The number of minority samples generated is calculated as:
number_of_samples = proportion * (N_maj - N_min)
Where N_maj is the number of majority samples and N_min is the number of minority samples.
Recommendation: Perform cross-validated model selection for the proportion parameter using a range such as [0.1, 0.2, 0.5, 1.0, 2.0, 5.0]. Setting proportion=1.0 will balance the dataset.