필터 지우기
필터 지우기

How to have access to activation functions' name in neural networks?

조회 수: 15 (최근 30일)
mary
mary 2023년 2월 10일
답변: Sanjana 2023년 3월 3일
Hi,
I want to know if it is possible to have have access to activation functions' name in Neural Networks in the same way that one can retrieve the input weight matrix, layer weight matrices, bias, etc. (i.e. Network_name.IW, Network_name.LW, Network_name.b, etc.) ?
If the answer is no, let's say that we save the name of these functions in a vector. This would be a string. Is it possible to make it functional in order to apply it on a vector Z to get the vector A? something like:
A = activation_function(1)(Z)

답변 (1개)

Sanjana
Sanjana 2023년 3월 3일
Hi Mary,
It is not possible to access the activation function name through network object properties, as per the official documentation.
And if you want to use activation functions like "relu" in neural networks, you can utilize neural network transfer functions defined in MATLAB to perform operations on vectors. You can refer to this example for more information. Also, you can find a list of transfer functions available in MATLAB in this link: https://www.mathworks.com/matlabcentral/answers/421958-where-can-i-find-a-neural-network-transfer-functions-list
Hope this helps!

카테고리

Help CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by