#include <Network.h>
Inheritance diagram for Network:
Public Member Functions | |
Network (int inputs, int outputs) | |
Default constructor. | |
Network (Network &) | |
Copy constructor. | |
virtual | ~Network () |
virtual Vector | getOutput (const Vector &input)=0 |
The output of the network given a stimulus. | |
virtual Vector | getOutput (real *input) |
Wrapper function, calls getOutput(Vector &input). | |
virtual void | setMetaData (const char *metaData) |
Sets the meta data of the network Meta data is arbitrary text that you may want to tag the network with. | |
virtual void | setMetaData (std::string metaData) |
Sets the meta data of the network Meta data is arbitrary text that you may want to tag the network with. | |
virtual std::string | getMetaData () |
Returns the meta data string. | |
virtual uint | getInputCount () const |
Number of inputs taken in by the network. | |
virtual uint | getOutputCount () const |
Number of outputs given by the network. | |
virtual const char * | getClassName () const=0 |
For reflection. | |
virtual void | save (const std::string &filename)=0 |
Save the network structure to the given text file. | |
Static Public Member Functions | |
std::string | getNetworkClassName (const char *filename) |
Finds the name of the network class from the given file. | |
Protected Attributes | |
uint | _nInputs |
Number of inputs taken in by the network. | |
uint | _nOutputs |
Number of outputs given by the network. | |
std::string | _metaData |
A string of meta data, can be used by users as pleased. |
This class is not instantiable itself. Different types of networks must be derived from this class.
The common information held by each network is the number of inputs (i.e., values that are obtained from the environment), the number of outputs (i.e., values that are given to the environment) and a string of meta data than can be used by users as pleased.
|
Default constructor.
|
|
Copy constructor. NOT YET IMPLEMENTED |
|
|
|
For reflection. All sub-classes MUST implement this method, which should just return class name Implemented in HopfieldBase, KohonenNetwork, MultiLayerNetwork, RadialBasisNetwork, and RecurrentNetwork. |
|
Number of inputs taken in by the network.
Reimplemented in RecurrentNetwork. |
|
Returns the meta data string.
|
|
Finds the name of the network class from the given file.
|
|
Wrapper function, calls getOutput(Vector &input).
Reimplemented in MultiLayerNetwork, and RadialBasisNetwork. |
|
The output of the network given a stimulus. Note that instantiable sub-classes of Network must define this function. How the network determines the output given the input is what characterizes it.
Implemented in HopfieldBase, KohonenNetwork, MultiLayerNetwork, and RecurrentNetwork. |
|
Number of outputs given by the network.
Reimplemented in RecurrentNetwork. |
|
Save the network structure to the given text file. The file format is quite simple and is commented.
Implemented in HopfieldBase, HopfieldNetwork, KohonenNetwork, MultiLayerNetwork, and RecurrentNetwork. |
|
Sets the meta data of the network Meta data is arbitrary text that you may want to tag the network with. This has no effect on the network output etc |
|
Sets the meta data of the network Meta data is arbitrary text that you may want to tag the network with. This has no effect on the network output etc |
|
A string of meta data, can be used by users as pleased.
|
|
Number of inputs taken in by the network. There should be these many InputNeurons in the network |
|
Number of outputs given by the network.
|