is there any m-files written exist for neural network ? instead of doing it in the toolbox ?
Best Answer
Look in the File Exchange. The classic text by Simon Haykin,Neural Networks: A Comprehensive Foundation, 2e book Companion Software is there, and doesn’t mention the Neural Network Toolbox as a requirement. (The first edition was my introduction to neural nets. We wrote all our own software.)
The input dlX for the forward(dlnet,dlX) function should be a formatted dlarray. Refer to the documentation of forward(specifically dlXunder Input Arguments)for more information.
Also from the above code, the modelGradients takes in dlnet, dlx and t as input arguments
function [gradient,loss]=modelGradients(dlnet,dlx,t)
but in the for loop to compute the gradients you are not providing the target data i.e., target2 as dlarray.
Best Answer