asreview.models.balance.DoubleBalance.sample

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

Resample the training data.

Parameters
Returns

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