Neural Network Activation function
조회 수: 82 (최근 30일)
이전 댓글 표시
I have 3 input hidden layer and 1 output layer.
I want to set the activation function for input layer as purelin
and output layer as tansig/purelin in 2 different models.
How can I set the above conditions?
댓글 수: 0
채택된 답변
Chunru
2022년 7월 5일
net = feedforwardnet([10 20]); % 2 hidden, 1 output layers
% specify the transfer function as you want
% Usually, layer1 will not be pureli
net.layers{1}.transferFcn = 'tansig'; % hidden layer 1
net.layers{2}.transferFcn = 'tansig'; % hidden layer 2
net.layers{3}.transferFcn = 'purelin'; % output layer
net
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!