Coder Social home page Coder Social logo

capsule-net-mnist's Introduction

Capsule-Net-mnist" Architecture by Offir Shmulevich

Train acc: 0.991734693878 Test(Unseen data) acc: 0.991666666667



input_1 (InputLayer)      |      (None, 28, 28, 1) |   0                                            
__________________________________________________________________________________________________
conv1 (Conv2D)             |     (None, 20, 20, 128)|  10496   |    input_1[0][0]                    
__________________________________________________________________________________________________
conv2d_1 (Conv2D)   |            (None, 6, 6, 128)  |  1327232  |   conv1[0][0]                      
__________________________________________________________________________________________________
reshape_1 (Reshape)        |     (None, 576, 8)   |    0       |    conv2d_1[0][0]                   
__________________________________________________________________________________________________
lambda_1 (Lambda)        |       (None, 576, 8)   |    0       |    reshape_1[0][0]                  
__________________________________________________________________________________________________
digitcaps (CapsuleLayer)   |     (None, 10, 16)    |   743040   |   lambda_1[0][0]                   
__________________________________________________________________________________________________
input_2 (InputLayer)      |      (None, 10)   |        0     |                                       
__________________________________________________________________________________________________
mask_1 (Mask)         |          (None, 16)     |      0         |  digitcaps[0][0]                  
                                                                 input_2[0][0]                    
__________________________________________________________________________________________________
dense_1 (Dense)        |         (None, 512)    |      8704     |   mask_1[0][0]                     
__________________________________________________________________________________________________
dense_2 (Dense)           |      (None, 1024)     |    525312     | dense_1[0][0]                    
__________________________________________________________________________________________________
dense_3 (Dense)          |       (None, 784)    |      803600 |     dense_2[0][0]                    
__________________________________________________________________________________________________
out_caps (Length)        |       (None, 10)      |     0     |      digitcaps[0][0]                  
__________________________________________________________________________________________________
out_recon (Reshape)     |        (None, 28, 28, 1)  |  0   |        dense_3[0][0]                    
==================================================================================================
Total params: 3,418,384
Trainable params: 3,412,624
Non-trainable params: 5,760

capsule-net-mnist's People

Contributors

ofirshm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.