Simple activation function to be applied to the output.
Layer that computes the average (element-wise) a list of inputs.
Layer that computes the average (element-wise) a list of inputs.
It takes as input a list of nodes, all of the same shape, and returns a single node (also of the same shape).
Average pooling operation for temporal data.
Average pooling operation for temporal data.
Input shape
3D tensor with shape: (batch_size, steps, features)
.
Output shape
3D tensor with shape: (batch_size, downsampled_steps, features)
.
Numeric type of parameter(e.g. weight, bias). Only support float/double now
1D convolution layer (e.g.
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.
If use_bias
is True, a bias vector is created and added to the outputs.
Finally, if activation
is not None
,
it is applied to the outputs as well.
When using this layer as the first layer in a model,
provide an input_shape
argument
(tuple of integers or None
, e.g.
(10, 128)
for sequences of 10 vectors of 128-dimensional vectors,
or (None, 128)
for variable-length sequences of 128-dimensional vectors.
Input shape
3D tensor with shape: (batch_size, steps, input_dim)
Output shape
3D tensor with shape: (batch_size, new_steps, filters)
steps
value might have changed due to padding or strides.
Numeric type of parameter(e.g. weight, bias). Only support float/double now.
2D convolution layer (e.g.
2D convolution layer (e.g. spatial convolution over images).
This layer creates a convolution kernel that is convolved
with the layer input to produce a tensor of
outputs. If use_bias
is True,
a bias vector is created and added to the outputs. Finally, if
activation
is not None
, it is applied to the outputs as well.
When using this layer as the first layer in a model,
provide the keyword argument input_shape
(tuple of integers, does not include the sample axis),
e.g. input_shape=(128, 128, 3)
for 128x128 RGB pictures
in data_format="channels_last"
.
Input shape
4D tensor with shape:
(samples, channels, rows, cols)
if data_format='channels_first'
or 4D tensor with shape:
(samples, rows, cols, channels)
if data_format='channels_last'.
Output shape
4D tensor with shape:
(samples, filters, new_rows, new_cols)
if data_format='channels_first'
or 4D tensor with shape:
(samples, new_rows, new_cols, filters)
if data_format='channels_last'.
rows
and cols
values might have changed due to padding.
Numeric type of parameter(e.g. weight, bias). Only support float/double now.
Cropping layer for 1D input (e.g.
Cropping layer for 1D input (e.g. temporal sequence). The input of this layer should be 3D.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
Numeric type of parameter(e.g. weight, bias). Only support float/double now.
A densely-connected NN layer.
A densely-connected NN layer. The most common input is 2D.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
Numeric type of parameter(e.g. weight, bias). Only support float/double now.
Applies Dropout to the input by randomly setting a fraction 'rate' of input units to 0 at each update during training time in order to prevent overfitting.
Applies Dropout to the input by randomly setting a fraction 'rate' of input units to 0 at each update during training time in order to prevent overfitting.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
Numeric type of parameter(e.g. weight, bias). Only support float/double now.
Flattens the input without affecting the batch size.
Flattens the input without affecting the batch size. For example, if inputShape = Shape(2, 3, 4), then outputShape will be Shape(24) with batch dimension unchanged.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
Numeric type of parameter(e.g. weight, bias). Only support float/double now.
Applies global average pooling operation for temporal data.
Applies global average pooling operation for temporal data. The input of this layer should be 3D.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
The numeric type of parameter(e.g. weight, bias). Only support float/double now.
Applies global average pooling operation for spatial data.
Applies global average pooling operation for spatial data. The input of this layer should be 4D.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
The numeric type of parameter(e.g. weight, bias). Only support float/double now.
Applies global average pooling operation for 3D data.
Applies global average pooling operation for 3D data. Data format currently supported for this layer is 'channels_first' . Padding currently supported for this layer is 'valid'. The input of this layer should be 5D.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
The numeric type of parameter(e.g. weight, bias). Only support float/double now.
Applies global max pooling operation for temporal data.
Applies global max pooling operation for temporal data. The input of this layer should be 3D.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
The numeric type of parameter(e.g. weight, bias). Only support float/double now.
Applies global max pooling operation for spatial data.
Applies global max pooling operation for spatial data. The input of this layer should be 4D.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
The numeric type of parameter(e.g. weight, bias). Only support float/double now.
Applies global max pooling operation for 3D data.
Applies global max pooling operation for 3D data. Data format currently supported for this layer is 'channels_first' (. padding currently supported for this layer is 'valid'. The input of this layer should be 5D.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
The numeric type of parameter(e.g. weight, bias). Only support float/double now.
Locally-connected layer for 1D inputs which works similarly to the TemporalConvolution layer, except that weights are unshared, that is, a different set of filters is applied at each different patch of the input.
Locally-connected layer for 1D inputs which works similarly to the TemporalConvolution layer, except that weights are unshared, that is, a different set of filters is applied at each different patch of the input. Padding currently supported for this layer is 'valid'. The input of this layer should be 3D.
When using this layer as the first layer in a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
The numeric type of parameter(e.g. weight, bias). Only support float/double now.
Max pooling operation for temporal data.
Max pooling operation for temporal data.
Input shape
3D tensor with shape: (batch_size, steps, features)
.
Output shape
3D tensor with shape: (batch_size, downsampled_steps, features)
.
Numeric type of parameter(e.g. weight, bias). Only support float/double now
Layer that computes the maximum (element-wise) a list of inputs.
Layer that computes the maximum (element-wise) a list of inputs.
It takes as input a list of nodes, all of the same shape, and returns a single node (also of the same shape).
Layer that computes the minimum (element-wise) a list of inputs.
Layer that computes the minimum (element-wise) a list of inputs.
It takes as input a list of nodes, all of the same shape, and returns a single node (also of the same shape).
Simple activation function to be applied to the output. Available activations: 'tanh', 'relu', 'sigmoid', 'softmax', 'softplus', 'softsign', 'hard_sigmoid', 'linear', 'relu6', 'tanh_shrink', 'softmin', 'log_sigmoid' and 'log_softmax'.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
Numeric type of parameter(e.g. weight, bias). Only support float/double now.