I'm not sure how to train this?

조회 수: 2 (최근 30일)
Chris Basic
Chris Basic 2020년 2월 26일
댓글: Chris Basic 2020년 3월 2일
I have created "lgraph_1" (LayerGraph file) through the Deep Learning Network. I originally had numbers for 29 columns (set as "XTrain") and a classification for the 30th column (set as "YTrain") and I converted the XTrain into images and named that file "Image". I'm not sure how to use XTrain or Image to get a classification for YTrain. I initially used this and it said "not enough input arguments". Does anyone know if there is a way to train this?
net=trainNetwork(Image,lgraph_1,options);

답변 (1개)

Divya Gaddipati
Divya Gaddipati 2020년 3월 2일
You need to provide both Xtrain and YTrain to the trainNetwork function.
net = trainNetwork(Xtrain, YTrain, lgraph_1, options);
Please refer to the following link for more information:
Hope this helps!
  댓글 수: 1
Chris Basic
Chris Basic 2020년 3월 2일
I did try this but it says I have too many input arguments. My XTrain is a table with 29 columns and both XTrain and YTrain have 16097 rows. Do I need to change the number of inputs in my deep learning network or do I need to change XTrain and YTrain to cells?

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

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by