How to write our own Loss function in Deep neural network layers.

25 ビュー (過去 30 日間)
Haleema Sadia
Haleema Sadia 2021 年 10 月 27 日
回答済み: Mohammad Sami 2021 年 10 月 29 日
I have to implement this unsupervised DNN network and a loss function given in figures. How I can introduce this loss function into my last layer in Matlab? Anycan can please guide.


Mohammad Sami
Mohammad Sami 2021 年 10 月 29 日
You can first check if the loss function is already available in Matlab here.
If its not available you can create your own custom loss function by creating a Classification or Regression layer based on the following tutorial.

その他の回答 (0 件)


Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by