Code covered by the BSD License  

Highlights from
Neural Network Symbolic expression

5.0

5.0 | 2 ratings Rate this file 14 Downloads (last 30 days) File Size: 2.87 KB File ID: #19176

Neural Network Symbolic expression

by Dirk Gorissen

 

12 Mar 2008 (Updated 27 May 2009)

Prints out the symbolic expression of a Matlab Neural Network toolbox object

| Watch this File

File Information
Description

Given a neural network object, this function returns the closed, symbolic, expression implemented by the network (as a string).

This allows you to use a neural network model without relying on the neural network toolbox.

Note I only implemented for feed forward nets (MLPs) and not all possible transfer functions are supported. However, it should be very straightforward to do this.

Example:

>> net = newff([-1 1; -1 1],[3 1]);
>> getNeuralNetExpression(net)

ans =

(2/(1+exp(-2*((2/(1+exp(-2*(x1*1.728941e+00 + x2*1.700224e+00 + -2.424871e+00)))-1)*-9.045580e-01 + (2/(1+exp(-2*(x1*-2.422662e+00 + x2*-1.034790e-01 + 000000)))-1)*-1.976229e-01 + (2/(1+exp(-2*(x1*2.044171e+00 + x2*1.304364e+00 + 2.424871e+00)))-1)*1.050105e+00 + 000000)))-1)

>>

This function originates from the Surrogate Modeling (SUMO) Toolbox : http://www.sumo.intec.ugent.be

Required Products Neural Network Toolbox
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
31 Mar 2008 john lancaster  
01 Feb 2009 surya

sir plz reply 2 me
i am working on the same topic could u help me plzz
my mail id is surya44@gmail.com

01 Feb 2009 surya

sir tell me how to search in google as i have been doing it by
neural network in symbolic expres.. in many combinations

22 Apr 2009 Dirk Gorissen

surya: Sorry I havent read the comments here in a long time. But I dont really understand your question. Just use it as described. Create a neural network object and call getNeuralNetExpression..

Please login to add a comment or rating.
Updates
27 May 2009

Updated the license conform Mathworks' new policy

Tag Activity for this File
Tag Applied By Date/Time
external interface Dirk Gorissen 22 Oct 2008 09:53:07
neural network Dirk Gorissen 22 Oct 2008 09:53:07
symbolic expression Dirk Gorissen 22 Oct 2008 09:53:07
closed form Dirk Gorissen 22 Oct 2008 09:53:07
function expression Dirk Gorissen 22 Oct 2008 09:53:07
neural network Fred Kruise 30 Mar 2009 09:20:46
aerospace Dirk Gorissen 27 May 2009 10:15:44
automotive Dirk Gorissen 27 May 2009 10:15:44
communications Dirk Gorissen 27 May 2009 10:15:44
simulation Dirk Gorissen 27 May 2009 10:15:44

Contact us at files@mathworks.com