predictions = clf.predict(digits.data[n_split:])
expected = digits.target[n_split:]
print(classification_report(expected, predictions))
Scipy/Numpy/scikits - calculating precision/recall scores based on two arrays