Evaluate the network performance
Predicted output
Actual target
Orientation, 'r' or 'c'
Accuracy
This function used to evaluate the accuracy of predicted output
P = [1 2 3 4; 1 2 3 4]./2 - 1; // Simple Normalization Tc = [1 2 3 4]; T = nn_onehot(Tc); // Convert to one-hot encoding [P_train, T_train, P_test, T_test] = nn_split_data(P,T,0.25,3);