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.

preprocess_input() method in keras

I am trying out sample keras code from the below keras documentation page, https://keras.io/applications/ What preprocess_input(…

python keras
How to add and remove new layers in keras after loading weights?

I am trying to do a transfer learning; for that purpose I want to remove the last two layers of …

python theano keras keras-layer
Keras split train test set when using ImageDataGenerator

I have a single directory which contains sub-folders (according to labels) of images. I want to split this data into …

keras train-test-split
Layer called with an input that isn't a symbolic tensor keras

I'm trying to pass the output of one layer into two different layers and then join them back together. However, …

python neural-network keras recurrent-neural-network
Make a custom loss function in keras

Hi I have been trying to make a custom loss function in keras for dice_error_coefficient. It has its …

python machine-learning tensorflow keras
Negative dimension size caused by subtracting 3 from 1 for 'Conv2D'

I'm using Keras with Tensorflow as backend , here is my code: import numpy as np np.random.seed(1373) import tensorflow …

python tensorflow keras
Understanding Keras LSTMs

I am trying to reconcile my understand of LSTMs and pointed out here in this post by Christopher Olah implemented …

python deep-learning keras lstm
Custom loss function in Keras

I'm working on a image class-incremental classifier approach using a CNN as a feature extractor and a fully-connected block for …

python tensorflow keras deep-learning computer-vision
keras: how to save the training history attribute of the history object

In Keras, we can return the output of model.fit to a history as follows: history = model.fit(X_train, …

python machine-learning neural-network deep-learning keras
How to log Keras loss output to a file

When you run a Keras neural network model you might see something like this in the console: Epoch 1/3 6/1000 [..............................] - ETA: 7994…

python logging machine-learning neural-network keras