One-vs-all classifier training and prediction
Neural network prediction function