How to compute the gradients of the the Neural Network in matlab
14 次查看(过去 30 天)
显示 更早的评论
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
2023-7-1
Hi Hanqiu,
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 Center 和 File 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!