asreview.models.balance.UndersampleBalance.sample

UndersampleBalance.sample(X, y, train_idx)[source]

Resample the training data.

Parameters
Returns

numpy.ndarray,numpy.ndarray – X_train, y_train: the resampled matrix, labels.