How to get validation and Test data of Neural network in MATLAB

조회 수: 15 (최근 30일)
ghazale
ghazale 2013년 10월 8일
댓글: Jan 2019년 1월 21일
Hi
I have a question. I have trained a neural network and for example I had 1000 Inputs, 70 are used for training. 15% for validation and 15 % for testing and now outputs are shown and the network is trained. I want to understand how an I extract the validation and test data in command window of MATLAB. For example if I have an input matrix 3*1000. and my out put matrix is 2*1000. so the validation matrix will be 3*150. How can I show this matrix and finally its related out put in command window of MATLAB ?
Thanks a lot
  댓글 수: 1
Jan
Jan 2019년 1월 21일
@Amine Bendali: Please post a comment to ask for clarifications. Flags are thought to inform admins aboud messages, which might collide with the terms of use, e.g. by spam or rudeness.

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

답변 (2개)

Greg Heath
Greg Heath 2013년 10월 8일
The input matrix contains train, val and test data. Similarly for the output data.
Indices are available in the training record tr
[ net tr Y E Xf Af ] = train(net,input,target,Xi,Ai).
Type, without a semicolon
tr = tr
for other useful information.
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 1
ghazale
ghazale 2013년 10월 8일
Hi, thanks for response, but I trained my network with fitting tool, I mean nnstart and then fitting tool, this tool choose 15 of data as validation and 15 as test data, how can I extract them?

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


ghazale
ghazale 2013년 10월 8일
Hi, thanks for response, but I trained my network with fitting tool, I mean nnstart and then fitting tool, this tool choose 15 of data as validation and 15 as test data, how can I extract them?
  댓글 수: 2
Greg Heath
Greg Heath 2013년 10월 8일
PLEASE DO NOT USE THE ANSWER BOX FOR COMMENTS OR QUESTIONS!
Greg Heath
Greg Heath 2013년 10월 8일
Don't know how to do it by GUI.

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

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by