Add one-vs-all prediction for ex3.