Code covered by the BSD License  

Highlights from
Gradient from Neural Network

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

Gradient from Neural Network

by

 

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

| Watch this File

File Information
Description

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 'dtansig_0.name' ''

22 Apr 2011 duc

i want to download it

10 Nov 2010 Alan Jennings

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.

09 Aug 2010 Alan Jennings

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

Contact us