I had the same situation happened in Python. I'm pretty sure I checked everything for errors. The thing that I changed is, instead of doing
Code:
better = better + (e_svm < e_pla);
I did
Code:
better = better + (e_svm <= e_pla);
This made the percentage go consistently over 60%. I see this as saying that the SVM algorithm is better whenever the PLA is not. I agree, it's a bit of a stretch and a tweak made only because I saw the answer, but it works.