Borrar filtros
Borrar filtros

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

9 visualizaciones (últimos 30 días)
hanqiu bao
hanqiu bao el 30 de Jun. de 2023
Comentada: hanqiu bao el 14 de Jul. de 2023
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?

Respuestas (1)

Shantanu Dixit
Shantanu Dixit el 1 de Jul. de 2023
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.

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by