from sklearn.metrics import confusion_matrix
print confusion_matrix(rets, pred_rets)