View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Gradient from Neural Network

Be the first to rate this file! 13 Downloads (last 30 days) File Size: 43.2 KB File ID: #28415 Version: 1.0
image thumbnail

Gradient from Neural Network


Alan Jennings (view profile)


Function that takes a NN and creates a new NN that gives the gradient.

| Watch this File

File Information

The form of a single layer feed forward neural network lends itself to finding the gradient. This is useful when the network is used for surrogate optimization or other algorithms that use gradients. Requires creating a file by modifying a NN toolbox file.

Required Products Neural Network Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Other requirements Must create a new file from a modified NN Toolbox file. Instruction are included in the file.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
25 Feb 2014 Gurpreet` Gosal

Hi Alan,

I am working with 2013 and I modified 'tansig.m' with its derivative as d= 1-a.*a
but there is an error in 'nnModuleInfo'; saying '' undefined function or variable '' ''

Comment only
22 Apr 2011 duc

duc (view profile)

i want to download it

Comment only
10 Nov 2010 Alan Jennings

Alan Jennings (view profile)

This needs a change to work with 2010 (when you change the size of the output, the weights change differently then before), I've done it and will get it in here soon. Again, Please let me know if this has helped you.

Comment only
09 Aug 2010 Alan Jennings

Alan Jennings (view profile)

Let me know if a Hessian would be helpful. I'm sure it could be done, but I'm wondering if there's interest.

Comment only

Contact us