All Projects → streamride → CapsNet-keras-imdb

streamride / CapsNet-keras-imdb

Licence: MIT License
No description or website provided.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to CapsNet-keras-imdb

Capsnet
CapsNet (Capsules Net) in Geoffrey E Hinton paper "Dynamic Routing Between Capsules" - State Of the Art
Stars: ✭ 423 (+2720%)
Mutual labels:  capsnet
Capsule Net Pytorch
[NO MAINTENANCE INTENDED] A PyTorch implementation of CapsNet architecture in the NIPS 2017 paper "Dynamic Routing Between Capsules".
Stars: ✭ 158 (+953.33%)
Mutual labels:  capsnet
CapsNet-tensorflow-jupyter
A simple tensorflow implementation of CapsNet (by Dr. G. Hinton), based on my understanding. This repository is built with an aim to simplify the concept, implement and understand it.
Stars: ✭ 16 (+6.67%)
Mutual labels:  capsnet
Capsnet Nlp
CapsNet for NLP
Stars: ✭ 66 (+340%)
Mutual labels:  capsnet
Capsule Gan
Code for my Master thesis on "Capsule Architecture as a Discriminator in Generative Adversarial Networks".
Stars: ✭ 120 (+700%)
Mutual labels:  capsnet
Dynamic routing between capsules
Implementation of Dynamic Routing Between Capsules, Sara Sabour, Nicholas Frosst, Geoffrey E Hinton, NIPS 2017
Stars: ✭ 202 (+1246.67%)
Mutual labels:  capsnet
Capsnet Visualization
🎆 A visualization of the CapsNet layers to better understand how it works
Stars: ✭ 371 (+2373.33%)
Mutual labels:  capsnet
capsules-tensorflow
Another implementation of Hinton's capsule networks in tensorflow.
Stars: ✭ 18 (+20%)
Mutual labels:  capsnet
Capsnet
A PyTorch implementation of CapsNet based on NIPS 2017 paper "Dynamic Routing Between Capsules"
Stars: ✭ 141 (+840%)
Mutual labels:  capsnet
CapsNet
Empirical studies on Capsule Network representation and improvements implemented with PyTorch.
Stars: ✭ 39 (+160%)
Mutual labels:  capsnet
Matrix Capsules With Em Routing
A TensorFlow implementation of "Matrix Capsules with EM Routing" by Hinton et al. (2018).
Stars: ✭ 74 (+393.33%)
Mutual labels:  capsnet
Capsnet guide pytorch
A tutorial-style implementation of CapsNet in PyTorch
Stars: ✭ 104 (+593.33%)
Mutual labels:  capsnet
Capsnet Keras
A Keras implementation of CapsNet in NIPS2017 paper "Dynamic Routing Between Capsules". Now test error = 0.34%.
Stars: ✭ 2,428 (+16086.67%)
Mutual labels:  capsnet
Capsnet Pytorch
PyTorch implementation of NIPS 2017 paper Dynamic Routing Between Capsules
Stars: ✭ 440 (+2833.33%)
Mutual labels:  capsnet
tf CapsNet
A tensorflow implementation for CapsNet
Stars: ✭ 19 (+26.67%)
Mutual labels:  capsnet
Capsnet Tensorflow
A Tensorflow implementation of CapsNet(Capsules Net) in paper Dynamic Routing Between Capsules
Stars: ✭ 3,776 (+25073.33%)
Mutual labels:  capsnet
Capsnet Traffic Sign Classifier
A Tensorflow implementation of CapsNet(Capsules Net) apply on german traffic sign dataset
Stars: ✭ 166 (+1006.67%)
Mutual labels:  capsnet
CapsuleLayer
PyTorch Capsule Layer
Stars: ✭ 28 (+86.67%)
Mutual labels:  capsnet
capsnet.mxnet
MXNet implementation of CapsNet
Stars: ✭ 30 (+100%)
Mutual labels:  capsnet
CapsNet-Fashion-MNIST
Capsule Network on Fashion MNIST dataset
Stars: ✭ 93 (+520%)
Mutual labels:  capsnet

NOTE

This implementation is fork of https://github.com/XifengGuo/CapsNet-Keras , applied to IMDB texts reviews dataset.

CapsNet-Keras

A Keras implementation of CapsNet in the paper: Sara Sabour, Nicholas Frosst, Geoffrey E Hinton. Dynamic Routing Between Capsules. NIPS 2017

Requirements

Usage

Training

Step 1. Install Keras:

$ pip install keras

Step 2. Clone this repository with git.

$ git clone https://github.com/streamride/CapsNet-keras-imdb.git
$ cd CapsNet-Keras

Step 3. Training:

$ python capsulenet.py

Training with one routing iteration (default 3).

$ python capsulenet.py --num_routing 1

Other parameters include batch_size, epochs, lam_recon, shift_fraction, save_dir can passed to the function in the same way. Please refer to capsulenet.py

Testing

Suppose you have trained a model using the above command, then the trained model will be saved to result/trained_model.h5. Now just launch the following command to get test results.

$ python capsulenet.py --is_training 0 --weights result/trained_model.h5

It will output the testing accuracy and show the reconstructed images. The testing data is same as the validation data. It will be easy to test on new data, just change the code as you want (Of course you can do it!!!)

Other Implementations

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].