Matrix Input Layer for Deep Neural Networks

11 ビュー (過去 30 日間)
Lynn Marciano
Lynn Marciano 2018 年 8 月 8 日
編集済み: Matt J 2023 年 4 月 6 日
I would like to be able to use the trainNetwork function to train a deep neural network on a matrix. It is not sequence data or an image and I know the only available input layers the deep networks provide is the imageInputLayer and the sequenceInputLayer. Is there any way that I can input a matrix to classify rather than the other two? Thanks in advance.
  2 件のコメント
Shining Pearl
Shining Pearl 2019 年 11 月 22 日
Same question :|
CLOUDY LU
CLOUDY LU 2020 年 2 月 12 日
Same question, not solved yet.

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

採用された回答

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH 2020 年 2 月 15 日
The wonderful thing about Matlab is that almost everything is seen as matrices or vectors, in fact this is not a disadvantage but one of its greatest strengths, therefore, a grayscale image is a 2d matrix for Matlab, a picture Color is a 3D matrix. The answer then is yes, you can use imageInputLayer to train your matrices, in fact all the procedure that occurs within deep learning in the case of images are operations with matrices.
Maybe your matrices that you want to classify are images and you have not noticed! ,
try somehow graphing your matrices and maybe your your own brain will find patterns to classify
Now in the practical case For example, if you have a 50x28 matrix :
inputlayer = imageInputLayer ([50 28], 'Name', 'entry')
or 50,28 in InputSize in the Deep Network Designer
I hope that when you see my answer in the matrix of your screen, your convolutional networks classify me as a good contributor
  2 件のコメント
Gian-Andrea Heinrich
Gian-Andrea Heinrich 2020 年 3 月 4 日
If I understood LMs question right, he has one m x n matrix containing m samples with n-1 features each and one target. (at least, this is my usecase)
Thus, matlab thinks I am inputing just one image. Even if I set the input layer to [n-1 1]. Probably, I need to reshape my matrix.
Gabriela Nunes Lopes
Gabriela Nunes Lopes 2023 年 4 月 6 日
I have exacly the same problem!

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

その他の回答 (1 件)

Xiaoliang Tang
Xiaoliang Tang 2020 年 11 月 18 日
  1 件のコメント
Matt J
Matt J 2023 年 4 月 6 日
編集済み: Matt J 2023 年 4 月 6 日
Yes, but the featureInputLayer does not allow the features to be organized in multi-dimensional form. The InputSize property of the is necessarily a scalar.
The user could flatten the input, of course...

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

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by