Different activation function to use with Convolutional Neural Network

3 ビュー (過去 30 日間)
Ham
Ham 2018 年 7 月 6 日
Hi there,
I am trying to use "Step Function" as the activation function for one of the convolutional layers in the CNN, though the only option Matlab provides is ReLU Layer, how can I add a different activation function?
Also what if the output of the CNN is another image not a class! What should I use as the final layer: Classification Layer or Regression Layer?
  1 件のコメント
Karthiga Mahalingam
Karthiga Mahalingam 2018 年 7 月 9 日
You can create custom layers for neural network models in matlab. This link has examples for creating custom deep learning, classification and regression layers:
https://www.mathworks.com/help/nnet/ug/define-custom-deep-learning-layers.html
The Deep learning layer example explains how to construct a PReLU layer. You could modify it accordingly for a step function.
To use a classification or a regression layer as the final layer would depend on your application. The above link also has examples to creating custom classification and regression layers.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Deep Learning Toolbox についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by