- class asreview.models.balance.UndersampleBalance(ratio=1.0, random_state=None)
Undersampling balance strategy (
This undersamples the data, leaving out excluded papers so that the included and excluded papers are in some particular ratio (closer to one).
ratio (double) – Undersampling ratio of the zero’s. If for example we set a ratio of 0.25, we would sample only a quarter of the zeros and all the ones.
Get the default parameters of the model.
Get the (assigned) parameters of the model.
sample(X, y, train_idx)
Resample the training data.