---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-16-c144e9b105f3> in <module>()
4 predictions = clf.predict(X_test)
5
----> 6 print classification_report(y_test, predictions)
7 print 'Precision:', precision_score(y_test, predictions)
8 print 'Recall:', recall_score(y_test, predictions)
/usr/local/lib/python2.7/site-packages/sklearn/metrics/metrics.pyc in classification_report(y_true, y_pred, labels, target_names, sample_weight)
2039 labels=labels,
2040 average=None,
-> 2041 sample_weight=sample_weight)
2042
2043 for i, label in enumerate(labels):
/usr/local/lib/python2.7/site-packages/sklearn/metrics/metrics.pyc in precision_recall_fscore_support(y_true, y_pred, beta, labels, pos_label, average, warn_for, sample_weight)
1667 raise ValueError("beta should be >0 in the F-beta score")
1668
-> 1669 y_type, y_true, y_pred = _check_clf_targets(y_true, y_pred)
1670
1671 label_order = labels # save this for later
/usr/local/lib/python2.7/site-packages/sklearn/metrics/metrics.pyc in _check_clf_targets(y_true, y_pred)
107 y_pred : array or indicator matrix
108 """
--> 109 y_true, y_pred = check_arrays(y_true, y_pred, allow_lists=True)
110 type_true = type_of_target(y_true)
111 type_pred = type_of_target(y_pred)
/usr/local/lib/python2.7/site-packages/sklearn/utils/validation.pyc in check_arrays(*arrays, **options)
252 if size != n_samples:
253 raise ValueError("Found array with dim %d. Expected %d"
--> 254 % (size, n_samples))
255
256 if not allow_lists or hasattr(array, "shape"):
ValueError: Found array with dim 798. Expected 800