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.

How to import keras from tf.keras in Tensorflow?

import tensorflow as tf import tensorflow from tensorflow import keras from keras.layers import Dense I am getting the below …

python tensorflow deep-learning keras
Using Keras & Tensorflow with AMD GPU

I'm starting to learn Keras, which I believe is a layer on top of Tensorflow and Theano. However, I only …

python python-2.7 opencl tensorflow keras
How to save final model using keras?

I use KerasClassifier to train the classifier. The code is below: import numpy from pandas import read_csv from keras.…

python machine-learning keras
How to return history of validation loss in Keras

Using Anaconda Python 2.7 Windows 10. I am training a language model using the Keras exmaple: print('Build model...') model = Sequential() …

python neural-network nlp deep-learning keras
What is the role of "Flatten" in Keras?

I am trying to understand the role of the Flatten function in Keras. Below is my code, which is a …

machine-learning tensorflow neural-network deep-learning keras
Get class labels from Keras functional model

I have a functional model in Keras (Resnet50 from repo examples). I trained it with ImageDataGenerator and flow_from_directory …

python keras
Save and load weights in keras

Im trying to save and load weights from the model i have trained. the code im using to save the …

python keras
How to predict input image using trained model in Keras?

I'm only beginning with keras and machine learning in general. I trained a model to classify images from 2 classes and …

python machine-learning keras computer-vision
Keras model.summary() result - Understanding the # of Parameters

I have a simple NN model for detecting hand-written digits from a 28x28px image written in python using Keras (…

python machine-learning neural-network keras theano
Keras accuracy does not change

I have a few thousand audio files and I want to classify them using Keras and Theano. So far, I …

python audio machine-learning theano keras