Comments (4)
Did you mean the routing in this class? The last layers of papers dynamics routing between capsules and matrix capsule with EM routing are both a fully connected layer but use a different routing algorithm (dynamics vs. EM routing). This class wrap them up and easily choose one of them by the parameter 'routing_method'. Sorry just noticed that the doc didn't mention this.
from capslayer.
Thank you for getting back to me @naturomics .
What I meant is, the convcaps2 layer is fully connected to the final class capsules layer but in the code you linked (
CapsLayer/capslayer/layers/layers.py
Line 32 in 926ee89
To be more specific, in the paper:
"When connecting the last convolutional capsule layer to the final layer we do not want to throw
away information about the location of the convolutional capsules but we also want to make use of
the fact that all capsules of the same type are extracting the same entity at different positions. We
therefore share the transformation matrices between different positions of the same capsule type and
add the scaled coordinate (row, column) of the center of the receptive field of each capsule to the first
two elements of the right-hand column of its vote matrix. We refer to this technique as Coordinate
Addition."
please correct me if I am wrong, so I understood it as just coordinate addition and no routing inside class capsules
from capslayer.
OK, I got your point. As we know the final layer is a capsules layer, not a 'normal' layer. The routing is the main difference between them, if not doing routing, it turns out to be a normal layer:
consider a fully connected capsule layer:
from capslayer.
@naturomics thanks a lot man, it makes sense
from capslayer.
Related Issues (20)
- ValueError when using cl.layers.conv2d HOT 1
- Reproducing results from "Matrix Capsules with EM Routing" HOT 2
- Support for MSCOCO dataset HOT 1
- Spelling Error
- CapsLayer Neural Network Example
- Question for E_step in EM Routing
- Prediction problem HOT 3
- ModuleNotFoundError: No module named 'capslayer.data.datasets.stanford_drone' HOT 2
- cifar10 dataset "Maximum allowed size exceeded" Error HOT 2
- tensorflow2.0 how to write config.py? HOT 1
- i have issue with cifar10
- OutOfRangeError (see above for traceback): End of sequence
- Hi, You can show an example application with CONV3D
- Routing by agreement with Transformer-based for NMT
- In the provided MNIST example not all capsules are seeing activation probability
- fashion mnist support
- Multi-label classificatoin
- Performance issues in capslayer/data/datasets/cifar10/reader.py
- Performance issues in /capslayer/data/datasets (by P3) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capslayer.