Matrix-Capsules-EM-Tensorflow icon indicating copy to clipboard operation
Matrix-Capsules-EM-Tensorflow copied to clipboard

How to add a dateset to the get_coord_add function

Open chaserxin opened this issue 6 years ago • 4 comments

I want to train the imdb dataset

chaserxin avatar May 01 '18 10:05 chaserxin

I have another dataset I would like to try, but I am also not sure how to create this matrix. I second @chaserxin

from the paper "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. This should encourage the shared final transformations to produce values for those two elements that represent the fine position of the entity relative to the center of the capsule’s receptive field"

ashleylid avatar May 02 '18 18:05 ashleylid

Anyone get a solution about how to create this matrix ? @chaserxin @kleinash

SafaaDaf avatar Jun 24 '18 17:06 SafaaDaf

@chaserxin @SafaaDaf U can run the code once as it is , u will get the shape_mismatch error , Just look the shape which u want and then extend the given matrix by scaling in both the dimensions ,such that it resolves the error.

chirag-singh avatar Sep 05 '18 06:09 chirag-singh

@chirag-singh That's what I tried and the error gone, but I wonder how this matrix would affect the accuracy ?

SafaaDaf avatar Sep 05 '18 15:09 SafaaDaf