This was actually meant for the line 

    pred_decision = np.ravel(pred_decision)

below.  I wrote this comment because, `y_true` is a 1-D array after 

    y_true = LabelBinarizer(neg_label=-1).fit_transform(y_true)[:, 0]

So `pred_decision` should also be 1-D for correct multiplication