Install and Upgrade
Screening and Projects
Resample the training data.
X (numpy.ndarray) – Complete feature matrix.
y (numpy.ndarray) – Labels for all papers.
train_idx (numpy.ndarray) – Training indices, that is all papers that have been reviewed.
numpy.ndarray,numpy.ndarray – X_train, y_train: the resampled matrix, labels.