How can I pass raw data as input to a convolutional neural network?

1 次查看(过去 30 天)
Hi everyone,
I am trying to pass as input a numeric vector of data to a convolutional neural network. I know that it's possible to pass a numeric input to a convolutional network in Python but, do you know how can I do in Matlab?

采纳的回答

Sarah Mohamed
Sarah Mohamed 2017-9-13
If I understand correctly, you are interested in specifying an input layer for a CNN that accepts a numeric vector. This is indeed possible using the “imageInputLayer” function:
n = 1000 % n = length of the input signal
inputLayer = imageInputLayer([1 n]) % Input is a row vector of length n
% Valid type = single or double
You might find the following Answers post relevant to you – this user’s question involves constructing a CNN with a 1D input signal:
  1 个评论
Diego Alonso
Diego Alonso 2017-9-20
Thanks for your answer. I have read the post you passed but I have some doubts. I am trying to follow this thesis (chapter 4) http://lemt.ufrj.br/pdf/pedro.pdf.
In summary, I have to disaggregate (into appliances) an aggregated power signal. I have both, aggregated and disaggregated (consumption of each appliance) power signal so I have to pass as input the whole consumption (aggregate) and as target the consumption of an appliance.
How can I do this?

请先登录,再进行评论。

更多回答(0 个)

类别

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