2016-10-08 22:53:24 +00:00
# Keras examples directory
2016-10-06 18:17:22 +00:00
[addition_rnn.py ](addition_rnn.py )
2016-10-06 22:01:17 +00:00
Implementation of sequence to sequence learning for performing addition of two numbers (as strings).
2016-10-06 18:17:22 +00:00
[antirectifier.py ](antirectifier.py )
2016-10-06 22:01:17 +00:00
Demonstrates how to write custom layers for Keras.
2016-10-06 18:17:22 +00:00
[babi_memnn.py ](babi_memnn.py )
2016-10-06 22:01:17 +00:00
Trains a memory network on the bAbI dataset for reading comprehension.
2016-10-06 18:17:22 +00:00
[babi_rnn.py ](babi_rnn.py )
2016-10-06 22:01:17 +00:00
Trains a two-branch recurrent network on the bAbI dataset for reading comprehension.
2016-10-06 18:17:22 +00:00
[cifar10_cnn.py ](cifar10_cnn.py )
2016-10-06 22:01:17 +00:00
Trains a simple deep CNN on the CIFAR10 small images dataset.
2016-10-06 18:17:22 +00:00
[conv_filter_visualization.py ](conv_filter_visualization.py )
Visualization of the filters of VGG16, via gradient ascent in input space.
2016-11-05 22:30:33 +00:00
[conv_lstm.py ](conv_lstm.py )
Demonstrates the use of a convolutional LSTM network.
2016-10-06 18:17:22 +00:00
[deep_dream.py ](deep_dream.py )
2016-10-06 22:01:17 +00:00
Deep Dreams in Keras.
2016-10-06 18:17:22 +00:00
[image_ocr.py ](image_ocr.py )
2016-10-06 22:01:17 +00:00
Trains a convolutional stack followed by a recurrent stack and a CTC logloss function to perform optical character recognition (OCR).
2016-10-06 18:17:22 +00:00
[imdb_bidirectional_lstm.py ](imdb_bidirectional_lstm.py )
2016-10-06 22:01:17 +00:00
Trains a Bidirectional LSTM on the IMDB sentiment classification task.
2016-10-06 18:17:22 +00:00
[imdb_cnn.py ](imdb_cnn.py )
2016-10-06 22:01:17 +00:00
Demonstrates the use of Convolution1D for text classification.
2016-10-06 18:17:22 +00:00
[imdb_cnn_lstm.py ](imdb_cnn_lstm.py )
2016-10-06 22:01:17 +00:00
Trains a convolutional stack followed by a recurrent stack network on the IMDB sentiment classification task.
2016-10-06 18:17:22 +00:00
[imdb_fasttext.py ](imdb_fasttext.py )
2016-10-06 22:01:17 +00:00
Trains a FastText model on the IMDB sentiment classification task.
2016-10-06 18:17:22 +00:00
[imdb_lstm.py ](imdb_lstm.py )
Trains a LSTM on the IMDB sentiment classification task.
[lstm_benchmark.py ](lstm_benchmark.py )
2016-10-06 22:01:17 +00:00
Compares different LSTM implementations on the IMDB sentiment classification task.
2016-10-06 18:17:22 +00:00
[lstm_text_generation.py ](lstm_text_generation.py )
2016-10-06 22:01:17 +00:00
Generates text from Nietzsche's writings.
2016-10-06 18:17:22 +00:00
[mnist_cnn.py ](mnist_cnn.py )
Trains a simple convnet on the MNIST dataset.
[mnist_hierarchical_rnn.py ](mnist_hierarchical_rnn.py )
2016-10-06 22:01:17 +00:00
Trains a Hierarchical RNN (HRNN) to classify MNIST digits.
2016-10-06 18:17:22 +00:00
[mnist_irnn.py ](mnist_irnn.py )
2016-10-06 22:01:17 +00:00
Reproduction of the IRNN experiment with pixel-by-pixel sequential MNIST in "A Simple Way to Initialize Recurrent Networks of Rectified Linear Units" by Le et al.
2016-10-06 18:17:22 +00:00
[mnist_mlp.py ](mnist_mlp.py )
2016-10-06 22:01:17 +00:00
Trains a simple deep multi-layer perceptron on the MNIST dataset.
2016-10-06 18:17:22 +00:00
[mnist_net2net.py ](mnist_net2net.py )
2016-10-06 22:01:17 +00:00
Reproduction of the Net2Net experiment with MNIST in "Net2Net: Accelerating Learning via Knowledge Transfer".
2016-10-06 18:17:22 +00:00
[mnist_siamese_graph.py ](mnist_siamese_graph.py )
2016-10-06 22:01:17 +00:00
Trains a Siamese multi-layer perceptron on pairs of digits from the MNIST dataset.
2016-10-06 18:17:22 +00:00
[mnist_sklearn_wrapper.py ](mnist_sklearn_wrapper.py )
2016-10-06 22:01:17 +00:00
Demonstrates how to use the sklearn wrapper.
2016-10-06 18:17:22 +00:00
[mnist_swwae.py ](mnist_swwae.py )
2016-10-06 22:01:17 +00:00
Trains a Stacked What-Where AutoEncoder built on residual blocks on the MNIST dataset.
2016-10-06 18:17:22 +00:00
[mnist_transfer_cnn.py ](mnist_transfer_cnn.py )
2016-10-06 22:01:17 +00:00
Transfer learning toy example.
2016-10-06 18:17:22 +00:00
[neural_doodle.py ](neural_doodle.py )
2016-10-06 22:01:17 +00:00
Neural doodle.
2016-10-06 18:17:22 +00:00
[neural_style_transfer.py ](neural_style_transfer.py )
2016-10-06 22:01:17 +00:00
Neural style transfer.
2016-10-06 18:17:22 +00:00
[pretrained_word_embeddings.py ](pretrained_word_embeddings.py )
2016-10-06 22:01:17 +00:00
Loads pre-trained word embeddings (GloVe embeddings) into a frozen Keras Embedding layer, and uses it to train a text classification model on the 20 Newsgroup dataset.
2016-10-06 18:17:22 +00:00
[reuters_mlp.py ](reuters_mlp.py )
Trains and evaluate a simple MLP on the Reuters newswire topic classification task.
[stateful_lstm.py ](stateful_lstm.py )
2016-10-06 22:01:17 +00:00
Demonstrates how to use stateful RNNs to model long sequences efficiently.
2016-10-06 18:17:22 +00:00
[variational_autoencoder.py ](variational_autoencoder.py )
2016-10-06 22:01:17 +00:00
Demonstrates how to build a variational autoencoder.
2016-10-06 18:17:22 +00:00
[variational_autoencoder_deconv.py ](variational_autoencoder_deconv.py )
2016-10-06 22:01:17 +00:00
Demonstrates how to build a variational autoencoder with Keras using deconvolution layers.