This documentation is for scikit-learn version 0.13.1 — Other versions
If you use the software, please consider citing scikit-learn.
Compute sample weights such that the class distribution of y becomes balanced.
y : array-like
Labels for the samples.
weights : array-like
The sample weights.