asreview.models.balance.UndersampleBalance

class asreview.models.balance.UndersampleBalance(ratio=1.0, random_state=None)[source]

Undersampling balance strategy (undersample).

This undersamples the data, leaving out excluded papers so that the included and excluded papers are in some particular ratio (closer to one).

Parameters:

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.

Attributes

default_param

Get the default parameters of the model.

label

name

param

Get the (assigned) parameters of the model.

Methods

full_hyper_space()

hyper_space()

sample(X, y, train_idx)

Resample the training data.