asreview.models.balance.base.BaseBalance.sample

abstract BaseBalance.sample(X, y, train_idx)[source]

Resample the training data.

Parameters:
Returns:

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