could anyone help me how to validate the neural network

조회 수: 4 (최근 30일)
jaah navi
jaah navi 2021년 6월 27일
댓글: Image Analyst 2021년 6월 27일
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.
  댓글 수: 3
jaah navi
jaah navi 2021년 6월 27일
I have collected training dataset, validation dataset and testing dataset.
Also,I am not using tool box, I am writing the code my myself.
In my code, for the training i am using the command line net = trainNetwork(XTrain,YTrain,layers) to train the model.
Once training is done i need to validate the model using validation dataset(XVal,YVal)
Could you please help me how I need to write the command to do validation using (XVal,YVal) with the already trained model.
Image Analyst
Image Analyst 2021년 6월 27일
You wrote your own trainNetwork() function? Well, you should know how to pass data to it then. Sorry I can't help you anymore with your custom function(s) - I prefer to use Toolbox functions rather than write my own.

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2021년 6월 27일
Read the documentation of TrainNetwork, you can pass the validation data to the function.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by