- Initialize your shallow neural network with the desired architecture.
- Define your function Y = f(X) that takes the network outputs X as input and produces the desired output Y. This function represents the relationship between the network outputs and the target outputs.
- Calculate the gradient of Y with respect to X.
- Use the calculated gradients to update the network weights using gradient descent or another suitable optimization algorithm.
I want to train a shallow neural network using known output gradients rather than input/output training pair data
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a shallow network defined by:
net = fitnet([64,112],'traingd');
The outputs of this network feed INTO a function Y = f(X) where X is the vector of net outputs X=net(I).
I calculate the gradient of Y w.r.t X and want to then train net based on these gradients rather than input/output data for the net.
댓글 수: 0
답변 (1개)
Gagan Agarwal
2023년 10월 25일
Hi James,
I understand that you are trying to train a shallow neural network using the known output gradients.
To train a shallow neural network using known output gradients, you can follow these steps:
For additional information, please refer to the following documentation:
I hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!