Description Usage Arguments Value Author(s)
Custom 2-D convolution wrapper for fixed motifs, such as those coming from a database.
1 2 3 4 |
object |
Keras model object. |
filters |
Number of convolutional filters. |
motif_maxlen |
Maximum length of the motifs. |
fixed.motifs |
List of motifs to be used as filters. |
fixed.offsets |
Vector of offset values. |
input_shape |
Dimensionality of the input (integer) not including the samples axis. This argument is required when using this layer as the first layer in a model. |
strides |
An integer or list of 2 integers, specifying the strides of the convolution along the width and height. Can be a single integer to specify the same value for all spatial dimensions. Specifying any stride value != 1 is incompatible with specifying any |
padding |
one of "valid" (default) or "same" (case-insensitive). |
activation |
Activation function to use. Default is the sigmoid activation. |
use_bias |
Boolean, whether the layer uses a bias vector. Default is to include a bias. |
name |
An optional name string for the layer. Should be unique in a model (do not reuse the same name twice). It will be autogenerated if it isn't provided. Default is |
trainable |
Whether the layer weights will be updated during training. Default is |
A Keras model with the added layer.
Matthew Ploenzke, ploenzke@g.harvard.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.