How to specify matrix type response and predictor variables for a regression model

조회 수: 1 (최근 30일)
I have created a neural network with a regression output layer. My response as well as predictor data are 1000*2 matrices. Currently, I am only able to specify a single data sample to the network when I use trainNetwork, but I am not able to feed the entire dataset. I tried to solve this problem by using 3D arrays, but that is not working. Can anyone please help me out? Currently I am only able to input: trainNetwork(L1, P1, layers, options), and I have matrices ranging from L1 to L50 and similarly for P, and I want to specify all these matrices as response and predictor data respectively.

채택된 답변

Madhav Thakker
Madhav Thakker 2021년 6월 29일
Hi Sumedh,
I understand you want to train on more than 1 input datapoint at a time. Have a look at batching documentation to see if this helps you.
  댓글 수: 1
Sumedh Soman
Sumedh Soman 2021년 6월 30일
Hello, Thanks a lot for the answer, the approach I followed after reading batch documentation has worked. Thanks for helping me out!

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by