How to use a customized Loss function in a Shallow neural network

조회 수: 4 (최근 30일)
Fabrizio Bernardi
Fabrizio Bernardi 2020년 8월 20일
답변: Srivardhan Gadila 2020년 8월 23일
Hello everyone. There are very useful functions like trainlm and traingd to train a NN, but they all use MSE loss function as default. How can I change that with a function MyLossFunction that I build?
I searched a bit but I am finding basically solution to program all network, when the command train was very quicker. And even if I have to do step by step, I found how to build a network, do the forward propagation, create my Loss function, but I miss the backpropagation part.
Thank you for the attention

답변 (1개)

Srivardhan Gadila
Srivardhan Gadila 2020년 8월 23일

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by