Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keras Conv1D or Convolution1D

Tags:

python

keras

I came across multiple implementations of a CNN in Keras and noticed that some people use Conv1D from from keras.layers.convolutional import Conv1D and others use Convolution1D from from keras.layers import Convolution1D. Is there a difference or an advantage to either one or are they possibly simply just different versions of Keras.

like image 875
Jacob B Avatar asked Aug 20 '18 22:08

Jacob B


People also ask

What is Conv1D in keras?

1D convolution layer (e.g. temporal convolution). This layer creates a convolution kernel that is convolved with the layer input over a single spatial (or temporal) dimension to produce a tensor of outputs.

What is difference between Conv1D and Conv2D?

With Conv1D, one dimension only is used, so the convolution operates on the first axis (size 68 ). With Conv2D, two dimensions are used, so the convolution operates on the two axis defining the data (size (68,2) )

What is Conv1D model?

The convolutional layer learns local patterns of given data in convolutional neural networks. It helps to extract the features of input data to provide the output.

What is the output of Conv1D?

Conv1D input: output: (None,800,3) (None,201,4) The batch dimension is the number of samples in the dataset. It is denoted as None, as it is not fixed. Each input sample is a 3 channel window of size 800 steps. The output step value may change due to padding or strides.


1 Answers

They are just for different keras versions, before Keras 2.0 the layers were called ConvolutionalND for N = 1, 2, 3, and since Keras 2.0 they are just called ConvND.

like image 200
Dr. Snoopy Avatar answered Oct 06 '22 00:10

Dr. Snoopy