Inheritance diagram for BaseNeuralNet:


Constructors | |
| BaseNeuralNet () | |
| ~BaseNeuralNet () | |
Interface | |
| void | addCluster (Cluster *c, bool isInput=false, bool isOutput=false) |
| void | addInputCluster (Cluster *c) |
| void | addOutputCluster (Cluster *c) |
| bool | removeCluster (Cluster *c) |
| void | markAsInput (Cluster *c) |
| void | markAsOutput (Cluster *c) |
| void | unmark (Cluster *c) |
| void | unmarkAll () |
| bool | isIsolated (Cluster *c) const |
| const ClusterVec & | clusters () const |
| const ClusterVec & | inputClusters () const |
| const ClusterVec & | outputClusters () const |
| const ClusterVec & | hiddenClusters () const |
| void | addLinker (Linker *l) |
| bool | removeLinker (Linker *) |
| const LinkerVec & | linkers () const |
| const LinkerVec & | linkers (Cluster *c, bool out=false) const |
| void | setOrder (Updatable *updatables[], u_int dim) |
| void | setOrder (const UpdatableVec &) |
| const UpdatableVec & | order () const |
| void | step () |
| void | randomize (Real min, Real max) |
| template<class PointerTo> | |
| PointerTo | byName (const char *aName, PointerTo &aPointer) |
| Updatable * | getByName (const char *) |
| bool | find (const Cluster *) const |
| bool | find (const Linker *) const |
| bool | find (const Updatable *) const |
| BaseNeuralNet * | clone () const |
Protected Attributes | |
| ClusterVec | clustersv |
| ClusterVec | inclusters |
| ClusterVec | outclusters |
| ClusterVec | hidclusters |
| LinkerVec | linkersv |
| ClustersMap | clsMap |
| IdsMap | clsIdsMap |
| LinkVecMap | inLinks |
| LinkVecMap | outLinks |
| LinkersMap | lksMap |
| UpdatableVec | ups |
| BaseNeuralNet | ( | ) |
Construct an empty neural network
| ~BaseNeuralNet | ( | ) |
Destructor
| void addCluster | ( | Cluster * | c, | |
| bool | isInput = false, |
|||
| bool | isOutput = false | |||
| ) |
| void addInputCluster | ( | Cluster * | c | ) | [inline] |
Add a Cluster and mark it as Input
Behave exactly the same of addCluster( c, true, false )
| void addOutputCluster | ( | Cluster * | c | ) | [inline] |
Add a Cluster and mark it as Output
Behave exactly the same of addCluster( c, false, true )
| void unmark | ( | Cluster * | c | ) |
| void unmarkAll | ( | ) |
Eliminate the marks from all Cluster present in this networks
| const ClusterVec& clusters | ( | ) | const |
Returns the vector of Clusters contained
| const ClusterVec& inputClusters | ( | ) | const |
Returns the vector of Input Clusters contained
| const ClusterVec& outputClusters | ( | ) | const |
Returns the vector of Output Clusters contained
| const ClusterVec& hiddenClusters | ( | ) | const |
Returns the vector of Hidden Clusters contained (i.e. UnMarked Clusters)
| const LinkerVec& linkers | ( | ) | const |
Returns the array of Linkers contained
If out is true, return the Linkers outgoing from Cluster c, otherwise return incoming Linkers
| void setOrder | ( | const UpdatableVec & | ) |
Set the order
| const UpdatableVec& order | ( | ) | const [inline] |
Return the order
| void step | ( | ) | [inline] |
Step
| PointerTo byName | ( | const char * | aName, | |
| PointerTo & | aPointer | |||
| ) | [inline] |
Search into the net for the presence of an Updatable with name aName; on success set the pointer aPointer and return it, otherwise it set aPointer to zero and return zero.
This allow to use it both into an if-statement and an assignment:
BiasedCluster* bias1; BiasedCluster* bias2; if ( byName("aName", bias1 ) ) { //--- ok, there is a BiasedCluster with name "aName" //--- now bias1 points to the BiasedCluster with name "aName" } else { //--- error, there is no BiasedCluster with that name //--- now bias1 is NULL } //--- you can also use it for assignment: bias2 = byName("aName", bias1);
| Updatable* getByName | ( | const char * | ) |
Return the Updatable with the name specified
Returns NULL-pointer if there's no updatable object whit the name specified
| BaseNeuralNet* clone | ( | ) | const [virtual] |
Clone this BaseNeuralNet
Implements Clonable.
ClusterVec clustersv [protected] |
Clusters
ClusterVec inclusters [protected] |
Input Clusters
ClusterVec outclusters [protected] |
Output Clusters
ClusterVec hidclusters [protected] |
unmarked Clusters
ClustersMap clsMap [protected] |
map name -> Cluster*
IdsMap clsIdsMap [protected] |
map Cluster* -> indexes where it is into vectors
LinkVecMap inLinks [protected] |
mappa dei linkers entranti (cluster -> vettore linkers entranti)
LinkVecMap outLinks [protected] |
map of outgoing linkers (cluster -> vettore linkers uscenti)
LinkersMap lksMap [protected] |
map name -> Cluster*
UpdatableVec ups [protected] |
Array of Updateables ordered as specified