MaxRandomQuery.query(X, classifier, n_instances=None, **kwargs)

Query new instances.

  • X (numpy.ndarray) – Feature matrix to choose samples from.

  • classifier (SKLearnModel) – Trained classifier to compute probabilities if they are necessary.

  • n_instances (int) – Number of instances to query.


(numpy.ndarray, numpy.ndarray) – The first is an array of shape (n_instances,) containing the row indices of the new instances in query order. The second is an array of shape (n_instances, n_feature_matrix_columns), containing the feature vectors of the new instances.