Matlab Neural Network toolbox: How to define one-by-one connection between neurons of two subsequent layers?

6 views (last 30 days)
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.

Answers (1)

Darshan Ramakant Bhat
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

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!