Top "Keras" questions

Keras is a neural network library providing a high-level API in Python and R. Use this tag for questions relating to how to use this API.

What is validation data used for in a Keras Sequential model?

My question is simple, what is the validation data passed to model.fit in a Sequential model used for? And, …

python validation keras training-data keras-2
How to calculate precision and recall in Keras

I am building a multi-class classifier with Keras 2.02 (with Tensorflow backend),and I do not know how to calculate precision …

python precision keras precision-recall
What's the difference between a bidirectional LSTM and an LSTM?

Can someone please explain this? I know bidirectional LSTMs have a forward and backward pass but what is the advantage …

machine-learning neural-network keras lstm recurrent-neural-network
How to tell Keras stop training based on loss value?

Currently I use the following code: callbacks = [ EarlyStopping(monitor='val_loss', patience=2, verbose=0), ModelCheckpoint(kfold_weights_path, monitor='val_loss', …

python machine-learning neural-network conv-neural-network keras
Convert Keras model to C++

I am using Keras (with Theano) to train my CNN model. Does anyone has idea how can I use it …

c++ tensorflow theano conv-neural-network keras
Show progress bar for each epoch during batchwise training in Keras

When I load the whole dataset in memory and train the network in Keras using following code: model.fit(X, …

python machine-learning keras
ValueError: Input 0 is incompatible with layer lstm_13: expected ndim=3, found ndim=4

I am trying for multi-class classification and here are the details of my training input and output: train_input.shape= (1, 95000, 360) (95000 …

python keras lstm recurrent-neural-network
Dimension of shape in conv1D

I have tried to build a CNN with one layer, but I have some problem with it. Indeed, the compilator …

python keras text-classification keras-layer
Keras: How to get layer shapes in a Sequential model

I would like to access the layer size of all the layers in a Sequential Keras model. My code: model = …

python tensorflow deep-learning keras theano
In Keras, how to get the layer name associated with a "Model" object contained in my model?

I built a Sequential model with the VGG16 network at the initial base, for example: from keras.applications import VGG16 …

keras keras-layer convolutional-neural-network