how can i provide one input vector to some neurons in the hidden layer and another input vector to some other neurons of the same hidden layer in matlab
Show older comments
I want to create a neural network with 2 input vectors.I am using 2 layer neural network with 10 neurons in the hidden layer. But the problem is i have to provide 1st input vector to 1st 5 neurons of the hidden layer and 2nd input vector to next 5 neurons of the same hidden layer. I searched all the properties of the neural network but none solved my problem. Please help me out with this.
Accepted Answer
More Answers (1)
Greg Heath
on 26 May 2014
After creating a 10-input net, set the appropriate weights of net.IW to zero; You will have to work out the details but the general idea is
net.IW{1:h1 , i1+1:end} = 0;
net.IW{h1+1:end , 1:i1 } = 0;
Hope this helps.
Thank you for formally accepting my answer
Greg
1 Comment
Preeti Prajapati
on 29 May 2014
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!