필터 지우기
필터 지우기

Training a neural network

조회 수: 1 (최근 30일)
First Last
First Last 2017년 10월 16일
댓글: First Last 2017년 10월 16일
I am new to the neural network using Matlab. I have training data with 684 inputs with each consisting of 360 samples whereas, the 684 output labels are of size 6.
I am trying to train a neural network with two hidden layers each consisting 20 neurons, but it is giving me an error. Can you please help me with this?
x=reshape(input,1,[]);
y=reshape(output,1,[]);
net=newcf([0 0.2],[[684,360], 20,20, [684,6]]);
net.trainparam.epochs = 20;
net.trainparam.goal = exp(1)^-25;
net.trainparam.lr = 0.01;
net = train(net,x, y)
  댓글 수: 2
Steven Lord
Steven Lord 2017년 10월 16일
What is the full text of the error message you receive? Show us everything printed in red text.
First Last
First Last 2017년 10월 16일
Input data size does not match net.inputs{1}.size.

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

답변 (0개)

카테고리

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