def test(classifier, data, labels):
  """
  Test a classifier.

  Parameters
  ----------
  classifier : sklearn classifier
    The classifier to test.

  data : numpy array
    The data with which to test the 
    classifier.

  labels : numpy array
    The labels with which to test the
    the classifier.

  Returns
  ------
  float
    The results of the test.
  """

  return classifier.score(data, labels)