Top "Keras-layer" questions

How to stack multiple lstm in keras?

I am using deep learning library keras and trying to stack multiple LSTM with no luck. Below is my code …

tensorflow deep-learning keras lstm keras-layer
How does the Flatten layer work in Keras?

I am using the TensorFlow backend. I am applying a convolution, max-pooling, flatten and a dense layer sequentially. The convolution …

tensorflow neural-network keras keras-layer
Keras: Difference between Kernel and Activity regularizers

I have noticed that weight_regularizer is no more available in Keras and that, in its place, there are activity …

machine-learning keras keras-layer
How to use lambda layer in keras?

I want to define lambda layer to combine features with cross product, then merge those models,just like the fig. ,…

python lambda keras-layer
How do you create a custom activation function with Keras?

Sometimes the default standard activations like ReLU, tanh, softmax, ... and the advanced activations like LeakyReLU aren't enough. And it might …

python keras keras-layer
ImportError: cannot import name '_obtain_input_shape' from keras

In Keras, I'm trying to import _obtain_input_shape as follows: from keras.applications.imagenet_utils import _obtain_input_shape …

keras keras-layer keras-2
How to implement Merge from Keras.layers

I have been trying to merge the following sequential models but haven't been able to. Could somebody please point out …

python python-3.x neural-network keras keras-layer
How to change input shape in Sequential model in Keras

I have a sequential model that I built in Keras. I try to figure out how to change the shape …

keras keras-layer
ImportError: No module named 'keras.utils.visualize_util'

Hi when I am trying to run a code in keras it is showing me the following error: from keras.…

python-3.x deep-learning keras keras-layer
Is there any way to get variable importance with Keras?

I am looking for a proper or best way to get variable importance in a Neural Network created with Keras. …

tensorflow deep-learning keras keras-layer keras-2