필터 지우기
필터 지우기

How do I import 4D array input data(X_train and Y_train) into Deep network designer.

조회 수: 6 (최근 30일)
Hi, I am doing the signal denoising using CNN and it is a regression problem... And I have converted my 1D signal data into 4D array..
I have been successfully run my CNN network using 4D array input data(X_train and Y_train) in matlab code...
But when I tried to implement CNN network in deep network designer, it was asking to use combine datastore...
So I was using the combine function to combine the X_train adn Y_train into a single datastore.. ds = combine(XTrain,YTrain); Not working...It said "Check for incorrect argument data type or missing argument in call to function 'combine'."
How do I import 4D array input data(X_train and Y_train) into Deep network designer?
Please help me, thank you...

채택된 답변

Srivardhan Gadila
Srivardhan Gadila 2021년 10월 5일
First you have to convert your array data to datastores using arrayDatastore as follows:
adsXTrain = arrayDatastore(X_train);
adsYTrain = arrayDatastore(Y_train);
Then combine the above datastores using combine method:
cdsTrain = combine(adsXTrain,adsYTrain);
Now you will have the option to select either of the above datastores in the Deep Network Designer App.
  댓글 수: 5
Srivardhan Gadila
Srivardhan Gadila 2021년 10월 5일
In that case create the arrayDatastore as follows:
adsXTrain = arrayDatastore(X_train,IterationDimension=4)
assuming that the size of X_train is 3000x1x1x20.
Also, I think in this scenario you can probably use featureInputLayer instead of imageInputLayer.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Pattern Recognition and Classification에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by