neuralnet.cpp
211 qWarning() << "The linker that you want add links cluster" << l->from()->name() << "that doesn't exist in this net! This operation will be ignored" ;
215 qWarning() << "The linker that you want add links cluster" << l->to()->name() << "that doesn't exist in this net! This operation will be ignored" ;
252 qWarning() << "Null Pointer passed to linkers! This operation will return an empty LinkerList" ;
278 qWarning() << "In the Updatable order list passed there are some Clusters and/or Linkers not present in this NeuralNet";
295 qWarning() << "In the Updatable order list passed there are some Clusters and/or Linkers not present in this NeuralNet";
354 // All Cluster has to be added before the creation of linkers, that's why the insertion is done after
476 Descriptor d = addTypeDescription( type, "Neural Network", "The neural network is a container for Clusters and Linkers. The topology and connectivity of the neural network is specified by the Linkers contained, while the order on which the Clusters and Linkers are updated is specified by the spreadOrder parameter of neural network" );
477 d.describeObject( "clustersList" ).type( "Cluster" ).props( IsList ).help( "The list of all Clusters" );
478 d.describeObject( "linkersList" ).type( "Linker" ).props( IsList ).help( "The list of all Linkers" );
479 d.describeObject( "inputClusters" ).type( "Cluster" ).props( IsList ).help( "The list of Clusters marked as input of the neural network" );
480 d.describeObject( "outputClusters" ).type( "Cluster" ).props( IsList ).help( "The list of Clusters marked as output of the neural network" );
481 d.describeObject( "spreadOrder" ).type( "Updatable" ).props( IsMandatory | IsList ).help( "The order on which the Clusters and Linkers are updated", "All Clusters and Linkers specified here are also automatically added into the neural network. If this list contains all Clusters and Linkers, then the clustersList and the linkersList parameters are superfluous" );
void stopRememberingGroupObjectAssociations()
static void describe(QString type)
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
Definition: neuralnet.cpp:475
virtual void configure(ConfigurationParameters ¶ms, QString prefix)
Configures the object using a ConfigurationParameters object.
Definition: neuralnet.cpp:342
void addCluster(Cluster *c, bool isInput=false, bool isOutput=false)
Add a Cluster into the neural network If isInput is true then the Cluster will be considered as an I...
Definition: neuralnet.cpp:53
void unmarkAll()
Eliminate the marks from all Cluster present in this networks.
Definition: neuralnet.cpp:161
bool isIsolated(Cluster *c) const
Return true if there isn't any Linker connected with Cluster c.
Definition: neuralnet.cpp:168
void markAsOutput(Cluster *c)
Mark a Cluster as an Output Cluster of this network.
Definition: neuralnet.cpp:120
ClusterList hiddenClusters() const
Returns the vector of Hidden Clusters contained (i.e.
Definition: neuralnet.cpp:190
FARSA_UTIL_TEMPLATE const T max(const T &t1, const U &t2)
virtual void save(ConfigurationParameters ¶ms, QString prefix)
Save the actual status of parameters into the ConfigurationParameters object passed.
Definition: neuralnet.cpp:436
virtual void save(ConfigurationParameters ¶ms, QString prefix)
Save the actual status of parameters into the ConfigurationParameters object passed.
Definition: linker.cpp:58
ParameterSettableUI * getUIManager()
return the UI Manager for accessing to the viewers of NeuralNet
Definition: neuralnet.cpp:36
ClusterList outputClusters() const
Returns the vector of Output Clusters contained.
Definition: neuralnet.cpp:186
void createGroup(QString groupPath)
virtual void save(ConfigurationParameters ¶ms, QString prefix)
Save the actual status of parameters into the ConfigurationParameters object passed.
Definition: cluster.cpp:129
bool startObjectParameters(QString groupPath, QString typeName, ParameterSettable *object)
An observer interface called during NeuralNet operations.
Definition: neuralnet.h:39
static Descriptor addTypeDescription(QString type, QString shortHelp, QString longHelp=QString(""))
QString getValue(QString path, bool alsoMatchParents=false) const
LinkVecMap outLinks
map of outgoing linkers (cluster -> vettore linkers uscenti)
Definition: neuralnet.h:391
bool find(const Cluster *) const
Return true if the Cluster is in this net.
Definition: neuralnet.cpp:327
void randomize(double min, double max)
This randomize the free parameters of the all elements of the neural net This method call randomize ...
Definition: neuralnet.cpp:303
TypeToCreate * getObjectFromGroup(QString group, bool configure=true, bool forceObjectCreation=false)
QStringList getGroupsList(QString group) const
FARSA_UTIL_TEMPLATE const T min(const T &t1, const U &t2)
void addObserver(NeuralNetObserver *observer)
add the observer to the list of current observers
Definition: neuralnet.cpp:44
ClusterList inputClusters() const
Returns the vector of Input Clusters contained.
Definition: neuralnet.cpp:182
ClusterList clusters() const
Returns the vector of Clusters contained.
Definition: neuralnet.cpp:178
void setName(QString name)
Set the name of the NeuralNet It's useful when loading from ConfigurationParameters more than NeuralN...
Definition: neuralnet.h:231
void startRememberingGroupObjectAssociations()
static QString GroupSeparator()
Updatable * getByName(QString)
Return the Updatable with the name specified Returns NULL-pointer if there's no updatable object whi...
Definition: neuralnet.cpp:314
void removeObserver(NeuralNetObserver *observer)
remove the observer from the list of current observers
Definition: neuralnet.cpp:49
void createParameter(QString groupPath, QString parameter)
This file contains the declaration of Neural Network Class.
IsMandatory
void markAsInput(Cluster *c)
Mark a Cluster as an Input Cluster of this network.
Definition: neuralnet.cpp:99
LinkVecMap inLinks
mappa dei linkers entranti (cluster -> vettore linkers entranti)
Definition: neuralnet.h:389
void setOrder(Updatable *updatables[], unsigned int dim)
Set the order.
Definition: neuralnet.cpp:270