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.

Get Confusion Matrix From a Keras Multiclass Model

I am building a multiclass model with Keras. model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy']) model.fit(X_…

python keras scikit-learn multiclass-classification
Error when checking model input: expected lstm_1_input to have 3 dimensions, but got array with shape (339732, 29)

My input is simply a csv file with 339732 rows and two columns : the first being 29 feature values, i.e. X …

python keras lstm recurrent-neural-network valueerror
How do I get the weights of a layer in Keras?

I am using Windows 10, Python 3.5, and tensorflow 1.1.0. I have the following script: import tensorflow as tf import tensorflow.contrib.keras.…

python tensorflow deep-learning keras keras-layer
How to fix "AttributeError: module 'tensorflow' has no attribute 'get_default_graph'"?

I am trying to run some code to create an LSTM model but i get an error: AttributeError: module 'tensorflow' …

python tensorflow keras keras-layer tf.keras
ImportError('Could not import PIL.Image. ' working with keras-ternsorflow

Im following some lectures from lynda.com about deep learning using Keras-TensorFlow in a PyCharmCE enviroment and they didnt had …

image-processing machine-learning keras
ImportError: libcublas.so.9.0: cannot open shared object file

currently I have cuda 8.0 and cuda 9.0 installed in Gpu support system. I ran into this error while importing from keras …

python-3.x tensorflow cuda keras
Tensorflow - ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float)

Continuation from previous question: Tensorflow - TypeError: 'int' object is not iterable My training data is a list of lists …

python tensorflow keras lstm
How to compute Receiving Operating Characteristic (ROC) and AUC in keras?

I have a multi output(200) binary classification model which I wrote in keras. In this model I want to add …

python theano keras
How to fix AttributeError: module 'numpy' has no attribute 'square'

I have updated numpy to 1.14.0. I use Windows 10. I tried to run my code and I got this error: AttributeError: …

python python-3.x numpy keras attributeerror
Keras: How to save model and continue training?

I have a model that I've trained for 40 epochs. I kept checkpoints for each epochs, and I have also saved …

python keras