def test_classifier(classifier, inputs, labels):
  """Compute mean subset accuracy for a classifier.

  Args:
    classifier: A scikit-learn classifier.
    inputs: a Kx464 array of linearised input images.
    labels: a K-vector of integer labels.

  Returns:
    A scalar mean accuracy score.
  """
  return classifier.score(inputs, labels)