Neural Network Activation function
154 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Krishna Saboo
el 5 de Jul. de 2022
Respondida: Chunru
el 5 de Jul. de 2022
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 comentarios
Respuesta aceptada
Chunru
el 5 de Jul. de 2022
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Define Shallow Neural Network Architectures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!