Predict sequential data using a trained deep learning neural network

2 次查看(过去 30 天)
Hello,
ich have multiple time series data, e.g
X1 = [300 x 3] with labels Y1 = [300 x 1] (300 data points and 3 features)
X2 = [350 x 3] with labels Y2 = [350 x 1]
X3 = [200 x 3] with labels Y3 = [200 x 1]
I have trained a neural network (1d-CNN) and now want to use "predict" to predict the labels of these time series (X1, X2, X3).
However, the "MiniBatchSize"-parameter iritates me.
"When making predictions with sequences of different lengths, the mini-batch size can impact the amount of padding added to the input data which can result in different predicted values. Try using different values to see which works best with your network. To specify mini-batch size and padding options, use the 'MiniBatchSize' and 'SequenceLength' options, respectively."
What is done by this padding? I mean, I just want to predict the labels to the inputs. If i got it right, if I select mini-batch size = 2, MATLAB select two of the time series (e.g. X1 and X2) and extend the shorter one to the length of the larger one (here X1_new = [350 x 3]. Then it calculates the error. But why is this done? Also strange is, that the predicted output for X1 is [300 x 1]. So why the extention to 350 is needed?
Kind regards
Paul

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by