Is it possible to change some properties of only a subset of units (neurons) in a hidden layer?

조회 수: 1 (최근 30일)
I am wondering if it is possible to change some properties of only a subset of units (neurons) in a hidden layer? Let say you have a network with 1 hidden (with 10 neurons) and 1 output layer:
net=fitnet(10);
Is it possible to change the transfer function of only the first 5 neurons in the first hidden layer to logsig while keeping the rest as tansig?
net.layers{1,1}.transferFcn='logsig';
will change all the units transfer function to logsig.
One possible way to overcome this problem is to define 10 parallel hidden layers (all connected to inputs) with single units. Then change their properties individually. I am just looking if there are any more compact ways of doing this.
Thanks in advance.
  댓글 수: 2
Greg Heath
Greg Heath 2018년 1월 25일
편집: Greg Heath 2018년 1월 25일
Using purelin in hidden nodes is useless. Better to choose a nonlinear alternative.
Hope this helps.
Greg
Kamuran Turksoy
Kamuran Turksoy 2018년 1월 25일
Use of purelin was just an example to make the question clear. I have now changed it to logsig.

댓글을 달려면 로그인하십시오.

답변 (1개)

Greg Heath
Greg Heath 2018년 1월 25일
The best way to pursue this is to have multiple hidden layers IN PARALLEL, each connected between the input and output layers but not connected to each other.
Then you can use a different type of hidden node for each of the parallel hidden layers.
Hope tis helps.
Thank you for formally accepting my answer
Greg

Community Treasure Hunt

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

Start Hunting!

Translated by