def precision_recall(y_test, y_pred):
    ydp = []
    for i in range(len(y_pred)):
        ydp += [y_pred[i][1]]
    (precision, recall, _) = precision_recall_curve(y_test, ydp)
    return (precision, recall)
def precision_recall(y_test, y_pred):
    ydp = []
    for i in range(len(y_pred)):
        ydp += [y_pred[i][1]]
    (precision, recall, _) = precision_recall_curve(y_test, ydp)
    return (precision, recall)