View source: R/mixtureDensityUtilities.R
layer_mixture_density | R Documentation |
Wraps a custom mixture density layer.
layer_mixture_density(
object,
outputDimension,
numberOfMixtures,
trainable = TRUE
)
object |
Object to compose layer with. This is either a keras::keras_model_sequential to add the layer to, or another Layer which this layer will call. |
outputDimension |
output dimension |
numberOfMixtures |
number of Gaussians used to model the function |
trainable |
Whether the layer weights will be updated during training. |
a keras layer tensor
## Not run:
model <- keras_model_sequential()
inputShape = c(20, 20, 1)
model = model %>%
layer_conv_2d(filters = 32, kernel_size = c(3,3), activation = 'relu',
input_shape = inputShape)
model %>%
layer_mixture_density(outputDimension = c(18, 18),
numberOfMixtures = 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.