convolution1dLayer
Description
A 1-D convolutional layer applies sliding convolutional filters to 1-D input. The layer convolves the input by moving the filters along the input and computing the dot product of the weights and the input, then adding a bias term.
The dimension that the layer convolves over depends on the layer input:
For time series and vector sequence input (data with three dimensions corresponding to the channels, observations, and time steps), the layer convolves over the time dimension.
For 1-D image input (data with three dimensions corresponding to the spatial pixels, channels, and observations), the layer convolves over the spatial dimension.
For 1-D image sequence input (data with four dimensions corresponding to the spatial pixels, channels, observations, and time steps), the layer convolves over the spatial dimension.
Creation
Syntax
Description
creates a 1-D convolutional layer and sets the layer
= convolution1dLayer(filterSize
,numFilters
)FilterSize
and NumFilters
properties.
also sets the optional layer
= convolution1dLayer(filterSize
,numFilters
,Name=Value
)Stride
, DilationFactor
, NumChannels
, Parameters and Initialization, Learning Rate and Regularization, and Name
properties using one or more name-value arguments. To
specify input padding, use the Padding
name-value argument. For example, convolution1dLayer(11,96,Padding=1)
creates a 1-D convolutional layer with 96 filters of size 11, and specifies padding of
size 1 on the left and right of the layer input.
Input Arguments
Properties
Examples
Algorithms
References
[1] Glorot, Xavier, and Yoshua Bengio. "Understanding the Difficulty of Training Deep Feedforward Neural Networks." In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, 249–356. Sardinia, Italy: AISTATS, 2010. https://proceedings.mlr.press/v9/glorot10a/glorot10a.pdf
[2] He, Kaiming, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. "Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification." In Proceedings of the 2015 IEEE International Conference on Computer Vision, 1026–1034. Washington, DC: IEEE Computer Vision Society, 2015. https://doi.org/10.1109/ICCV.2015.123
Version History
Introduced in R2021b
See Also
trainingOptions
| trainNetwork
| sequenceInputLayer
| lstmLayer
| bilstmLayer
| gruLayer
| maxPooling1dLayer
| averagePooling1dLayer
| globalMaxPooling1dLayer
| globalAveragePooling1dLayer
| transposedConv1dLayer
Topics
- Sequence Classification Using 1-D Convolutions
- Sequence-to-Sequence Classification Using 1-D Convolutions
- Sequence Classification Using Deep Learning
- Sequence-to-Sequence Classification Using Deep Learning
- Sequence-to-Sequence Regression Using Deep Learning
- Time Series Forecasting Using Deep Learning
- Long Short-Term Memory Neural Networks
- List of Deep Learning Layers
- Deep Learning Tips and Tricks