Synopsis: snns2c <network> C-filename> function-name
This tool compiles an SNNS network file into an executable C source. It reads a network file <network.net> and generates a C source named <C-filename>. The network can be called now as a function named <function-name>. If the parameter <function-name> is missing, the name of <C-filename> is taken without the ending ``*.c''. If this parameter is also missing, the name of the network file is chosen and fitted with a new ending for the output file. This name without ending is also used for the function name.
It is not possible to train the generated net, SNNS has to be used for this purpose. After completion of network training with SNNS, the tool SNNS2C is used to integrate the trained network as a C function into a separate application.
This program is also an example how to use the SNNS kernel interface for loading a net and changing the loaded net into another format. All data and all SNNS functions -- except the activation functions -- are placed in a single C function.
SNNS2C does not support sites. Any networks created with SNNS that make use of the site feature can not be converted to C source by this tool. Output functions are not supported, either.
The program can translate the following network-types:
While the use of SNNS or any parts of it in commercial applications requires a special agreement/licensing from the developers, the use of trained networks generated with SNNS2C is hereby granted without any fees for any purpose, provided proper academic credit to the SNNS team is given in the documentation of the application.