dmlc--dgl
e17c41c0da
* fix memory leak & Remove unnecessary initializer * change confused name * fix name * Move func outside loop * fix name inconsistency
DGL implementation of Capsule Network
This repo implements Hinton and his team's Capsule Network. Only margin loss is implemented, for simplicity to understand the DGL.
Training& Evaluation
# Run with default config
python main.py
# Run with train and test batch size 128, and for 50 epochs
python main.py --batch-size 128 --test-batch-size 128 --epochs 50