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.

Many to one and many to many LSTM examples in Keras

I try to understand LSTMs and how to build them with Keras. I found out, that there are principally the 4 …

machine-learning neural-network deep-learning keras recurrent-neural-network
What does Keras Tokenizer method exactly do?

On occasion, circumstances require us to do the following: from keras.preprocessing.text import Tokenizer tokenizer = Tokenizer(num_words=my_…

python keras nlp
how to implement custom metric in keras?

I get this error : sum() got an unexpected keyword argument 'out' when I run this code: import pandas as pd, …

python neural-network deep-learning keras metrics
How do you use Keras LeakyReLU in Python?

I am trying to produce a CNN using Keras, and wrote the following code: batch_size = 64 epochs = 20 num_classes = 5 cnn_…

python machine-learning neural-network keras conv-neural-network
Negative dimension size caused by subtracting 3 from 1 for 'conv2d_2/convolution'

I got this error message when declaring the input layer in Keras. ValueError: Negative dimension size caused by subtracting 3 from 1 …

python tensorflow neural-network keras keras-layer
How to change Keras backend (where's the json file)?

I have installed Keras, and wanted to switch the backend to Theano. I checked out this post, but still have …

python command-line theano keras
The added layer must be an instance of class Layer. Found: <tensorflow.python.keras.engine.input_layer.InputLayer>

I am new to machine learning. I was following this tutorial on fine-tuning VGG16 models. The model loaded fine with …

python tensorflow keras transfer-learning vgg-net
Saving best model in keras

I use the following code when training a model in keras from keras.callbacks import EarlyStopping model = Sequential() model.add(…

python keras deep-learning neural-network
RMSE/ RMSLE loss function in Keras

I try to participate in my first Kaggle competition where RMSLE is given as the required loss function. For I …

python keras custom-function loss-function
How to uninstall Keras?

I have installed Keras using this command: sudo pip install keras It installed properly and worked fine until I tried …

python theano keras