Top "Keras-2" questions

Validation accuracy is always greater than training accuracy in Keras

I am trying to train a simple neural network with the mnist dataset. For some reason, when I get the …

python keras keras-2
Installed Keras with pip3, but getting the "No Module Named keras" error

I am Creating a leaf Identification Classifier using the CNN, the Keras and the Tensorflow backends on Windows. I have …

python windows tensorflow keras keras-2
restore_best_weights issue keras early stopping

I am using EarlyStopping from Keras for my deep learning project. The documentations here mentions a very useful idea of …

keras keras-2
Keras: ImportError: `save_model` requires h5py even thought the code already imported h5py

I ran into some trouble when trying to save a Keras model: Here is my code: import h5py from …

keras h5py keras-2
How to use TensorFlow metrics in Keras

There seem to be several threads/issues on this already but it doesn't appear to me that this has been …

python tensorflow keras tensorflow-gpu keras-2
Preprocessing function of inception v3 in Keras

This is preprocessing function of inception v3 in Keras. It is totally different from other models preprocessing. def preprocess_input(…

deep-learning keras keras-2
Keras 2 fit_generator UserWarning: `steps_per_epoch` is not the same as the Keras 1 argument `samples_per_epoch`

I'm using Keras 2.0.8 with Python 3 kernel in Jupyter Notebook. My backend is TensorFlow 1.3 and I'm developing on Mac. Whenever I'm …

python neural-network keras jupyter-notebook keras-2
Removing layers from a pretrained keras model gives the same output as original model

During some feature extraction experiments, I noticed that the 'model.pop()' functionality is not working as expected. For a …

keras keras-layer keras-2