フィルターのクリア

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 Center および File ExchangeInstall Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by