How to train neural network to generate one output using specific input data?
이전 댓글 표시
Hello esteemed friends, I need help. How to train the neural network using input data (8x4000) and target data (1x4000), and then use the trained neural network using 2 to 3 input data to generate one output? For example using the abalone_dataset.mat, train the neural network using input data (8x4177) which contain length,height, weight, etc, and target data (1x4177) which is the ring size. Then using the trained neural network using 2 to 3 input data which maybe only contain length and height only to generate one output. I'm still new to the neural network and currently using the LSTM for this problem.
load abalone_dataset.mat
[xtrn,ttrn] = abalone_dataset;
numFeatures = 8;
numHiddenUnits = 125;
numResponses = 1;
layers = [ ...
sequenceInputLayer(numFeatures)
lstmLayer(numHiddenUnits,'OutputMode','last')
fullyConnectedLayer(numResponses)
regressionLayer];
maxEpochs = 70;
miniBatchSize = 27;
options = trainingOptions('adam', ...
'ExecutionEnvironment','cpu', ...
'MaxEpochs',maxEpochs, ...
'MiniBatchSize',miniBatchSize, ...
'GradientThreshold',1, ...
'Verbose',false, ...
'Plots','training-progress');
net = trainNetwork(xtrn,ttrn,layers,options);
I also have problem during the "net = trainNetwork(xtrn,ttrn,layers,options);" command. I really appreciate it if anyone can solve this problem too.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
