How can I turn off the activation of a single unit in deep neural networks?

1 回表示 (過去 30 日間)
Jae Son Jang
Jae Son Jang 2020 年 7 月 3 日
回答済み: Mahesh Taparia 2020 年 7 月 13 日
In the Deep Learning Toolbox, how can I turn off the activation of a single unit in one layer and then calculate the activation of the whole network?
As an indirect method, I think that it can be done if I set all the convolutional weights between the unit and the next layer to be 0.
However, I wonder if there is any function developed for this ablation test.

回答 (1 件)

Mahesh Taparia
Mahesh Taparia 2020 年 7 月 13 日
Hi
You can create a custom activation function in MATLAB and can keep the particular unit as same and for the rest of the nodes, you can apply any function. You can refer here for more information on it. Change the predict function in that class according to your requirement. Hope it will help!

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by