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.

NaN loss when training regression network

I have a data matrix in "one-hot encoding" (all ones and zeros) with 260,000 rows and 35 columns. I am using Keras …

python keras neural-network theano loss-function
How big should batch size and number of epochs be when fitting a model in Keras?

I am training on 970 samples and validating on 243 samples. How big should batch size and number of epochs be when …

python machine-learning keras data-science
How to export Keras .h5 to tensorflow .pb?

I have fine-tuned inception model with a new dataset and saved it as ".h5" model in Keras. now my goal …

python tensorflow keras
How do I check if keras is using gpu version of tensorflow?

When I run a keras script, I get the following output: Using TensorFlow backend. 2017-06-14 17:40:44.621761: W tensorflow/core/platform/…

python tensorflow neural-network keras
Error when checking target: expected dense_3 to have shape (3,) but got array with shape (1,)

I am working on training a VGG16-like model in Keras, on a 3 classes subset from Places205, and encountered the …

python python-3.x tensorflow keras
Loading a trained Keras model and continue training

I was wondering if it was possible to save a partly trained Keras model and continue the training after loading …

python tensorflow neural-network keras resuming-training
How to apply gradient clipping in TensorFlow?

Considering the example code. I would like to know How to apply gradient clipping on this network on the RNN …

python tensorflow machine-learning keras deep-learning
How to switch Backend with Keras (from TensorFlow to Theano)

I tried to switch Backend with Keras (from TensorFlow to Theano) but did not manage. I followed the temps described …

backend theano keras
Keras ValueError: Input 0 is incompatible with layer conv2d_1: expected ndim=4, found ndim=5

I have checked all the solutions, but still, I am facing the same error. My training images shape is (26721, 32, 32, 1), which …

python tensorflow deep-learning keras conv-neural-network
Which parameters should be used for early stopping?

I'm training a neural network for my project using Keras. Keras has provided a function for early stopping. May I …

python keras deep-learning conv-neural-network