Neural Network Toolbox Previous page   Next Page 
 Provide feedback about this page

Custom Functions

The toolbox allows you to create and use your own custom functions. This gives you a great deal of control over the algorithms used to initialize, simulate, and train your networks.

Template functions are available for you to copy, rename and customize, to create your own versions of these kinds of functions. You can see the list of all template functions by typing the following:

Each template a simple version of a different type of function that you can use with your own custom networks.

For instance, make a copy of the file template_transfer.m. Rename the new file mytransfer. Start editing the file by changing the function name at the top from template_transfer to mytransfer.

You can now edit each of the sections of code that make up a transfer function, using the help comments in each of those sections to guide you.

Once you are done, store the new function in your working directory, and assign the name of your transfer function to the transferFcn property of any layer of any network object to put it to use.


 Provide feedback about this page 

Previous page Additional Toolbox Functions Historical Networks Next page

© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments


Your Ad Here