How to create train data for 1d CNN
조회 수: 3 (최근 30일)
이전 댓글 표시
I try to reshape data for be the inpput of CNN started with reshape XTrain to 4d
but the error say "Error using categorical (line 358)
Could not find unique values in DATA using the UNIQUE function. Caused by:
Error using matlab.internal.math.uniqueCellstrHelper
Cell array input must be a cell array of character vectors."
my train data set is 2016 x 3 double
how I can get the input for CNN network (YTrain)
%% Reshaped input
XTrain = reshape(trainset,[1 2016 1 3]);
% Creat the labels
YTrain = (trainset(:,3));
YTrain = num2cell(YTrain);
YTrain = categorical(YTrain);
댓글 수: 2
KSSV
2021년 9월 14일
What is your input and out put? What exactly is the targetted problem? You know for CNN inputs should be images/ matrices.
채택된 답변
Anshika Chaurasia
2021년 9월 17일
Hi,
Refer to following documentation to know more about preparing data for 1D convolution:
Refer to following documentation for load forecasting:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!