I am developing neural network model to train, validate and test the network.
For training I am using net = trainNetwork(XTrain,YTrain,layers)
For testing I am using YPred = predict(net,XTest).
Before testing I need to do validation with the trained network using validation XVal.
Could anyone please help me how to do validation for the trained network before testing.