How to create train data for 1d CNN

15 ビュー (過去 30 日間)
Parichada Trairat
Parichada Trairat 2021 年 9 月 14 日
回答済み: Anshika Chaurasia 2021 年 9 月 17 日
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
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.
Parichada Trairat
Parichada Trairat 2021 年 9 月 15 日
my input consist of load demand, holidays and time sample
I want the load demand for output
the problem is prediction load demand

サインインしてコメントする。

採用された回答

Anshika Chaurasia
Anshika Chaurasia 2021 年 9 月 17 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by