Matlab Neural Network toolbox: How to define one-by-one connection between neurons of two subsequent layers?
6 views (last 30 days)
Show older comments
I have designed a network using Matlab Neural Network toolbox.
The input vector ( net.inputs{1}) has 100 elements and the first intermediate layer ( net.layers{1}) has also 100 neurons. ( net.layers{1}.size=100 )
The weight matrix between these two ( inputWeight{1,1} ) has the size of [100 100] which means the default connection shape is fully connected.
How can I change it in such to have a one-by-one connection between each input element and each neuron of the next layer? In other words how can I change the inputWeight{1,1}.size to [100 1]?
thanks,
P.S.: As you know, inputWeight{1,1}.size is read-only and depends on layers' definition. So, I cannot change it explicitly.
0 Comments
Answers (1)
Darshan Ramakant Bhat
on 14 Feb 2017
As of now MATLAB supports only fully connected layers. However there are workarounds possible. Please go through the following link dealing with the similar issue
For more information on how to build customize Neural Network Architectures please refer following article
I hope this will help.
Regards
Darshan Bhat
1 Comment
Robert Macrae
on 16 Oct 2018
Issue remains interesting, so please could you update the broken newsgroup link?
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!