How to compute the gradients of the the Neural Network in matlab

조회 수: 9 (최근 30일)
hanqiu bao
hanqiu bao 2023년 6월 30일
댓글: hanqiu bao 2023년 7월 14일
If we have a nural network: y = f(x,u), then how to caculate the dy/du or dy/dx in matlab? Is there any tool in matlab?

답변 (1개)

Shantanu Dixit
Shantanu Dixit 2023년 7월 1일
Hi Hanqiu,
Refer to dlgradient-MATLAB for gradient calculation.
The function takes in y-(Variable to differentiate) and x1,x2....xk (Variable in function) and returns the gradient (dydx1,dydx2,...dydxk) corresponding to the variables in function.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by