![Inheritance graph](classfarsa_1_1Pattern__inherit__graph.png)
Classes | |
class | PatternInfo |
Public Member Functions | |
Pattern () | |
Construct an empty Pattern. More... | |
~Pattern () | |
Destructor. More... | |
virtual void | configure (ConfigurationParameters ¶ms, QString prefix) |
Configures the object using a ConfigurationParameters object. More... | |
const DoubleVector & | inputsOf (Cluster *) const |
return stored information if exists, otherwise it return a zero vector More... | |
PatternInfo & | operator[] (Cluster *) |
return the stored information More... | |
const DoubleVector & | outputsOf (Cluster *) const |
return stored information if exists, otherwise it return a zero vector More... | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. More... | |
void | setInputsOf (Cluster *, const DoubleVector &) |
set the inputs associated with Cluster passed More... | |
void | setInputsOutputsOf (Cluster *, const DoubleVector &inputs, const DoubleVector &outputs) |
set the both inputs and outputs associated with Cluster passed More... | |
void | setOutputsOf (Cluster *, const DoubleVector &) |
set the outputs associated with Cluster passed More... | |
![]() | |
void | addObserver (RuntimeParameterObserver *obs) |
T | getRuntimeParameter (QString paramName) |
virtual ParameterSettableUI * | getUIManager () |
virtual void | postConfigureInitialization () |
void | removeObserver (RuntimeParameterObserver *obs) |
void | setRuntimeParameter (QString paramName, T newvalue) |
QString | typeName () const |
Static Public Member Functions | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. More... | |
![]() | |
static void | describe (QString type) |
static QString | fullParameterDescriptionPath (QString type, QString param) |
static QString | fullSubgroupDescriptionPath (QString type, QString sub) |
Additional Inherited Members | |
![]() | |
enum | Property |
![]() | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
![]() | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
![]() | |
void | notifyChangesToParam (QString paramName) |
![]() | |
static Descriptor | addTypeDescription (QString type, QString shortHelp, QString longHelp=QString("")) |
static void | setGraphicalEditor (QString type) |
Detailed Description
Pattern object.
The Pattern object represent a configuration (partial or complete) of the network that can be used by a learning algorithm as model to learn. A LearningAlgorithm will use Pattern for setup network's inputs, spread network and eventually calculate the error, and modify the network's paramenters on the basis of neurons activities in order to get closer to neuron activities presented by the Pattern
Pattern simply associates inputs/outputs pairs to Clusters:
- Warning
- Pay attention when you use operator[] because it silently add new data. Like QMap::operator[]
Definition at line 60 of file learningalgorithm.h.
Constructor & Destructor Documentation
|
inline |
Construct an empty Pattern.
Definition at line 68 of file learningalgorithm.h.
|
inline |
Destructor.
Definition at line 70 of file learningalgorithm.h.
Member Function Documentation
|
virtual |
Configures the object using a ConfigurationParameters object.
The Pattern has to be declared using a sequence of parameters with the following schema:
Essentialy, the parameters are grouped using the identifier string after the ':' char. And the inputs and outputs with a given identifier are associated to the cluster with the same identifier. If a cluster:i is present, then at least inputs:i or outputs:i parameter must be present
- Parameters
-
params the configuration parameters object with parameters to use prefix the prefix to use to access the object configuration parameters. This is guaranteed to end with the separator character when called by the factory, so you don't need to add one
Implements ParameterSettableWithConfigureFunction.
Definition at line 67 of file learningalgorithm.cpp.
References ConfigurationParameters::getObjectFromParameter(), ConfigurationParameters::getParametersWithPrefixList(), ConfigurationParameters::getValue(), Pattern::setInputsOf(), and Pattern::setOutputsOf().
|
static |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
Definition at line 127 of file learningalgorithm.cpp.
References ParameterSettable::addTypeDescription(), ParameterSettable::AllowMultiple, ParameterSettable::IsList, and ParameterSettable::IsMandatory.
const DoubleVector & inputsOf | ( | Cluster * | cl | ) | const |
return stored information if exists, otherwise it return a zero vector
Definition at line 43 of file learningalgorithm.cpp.
Referenced by BackPropagationAlgo::calculateMSE(), and BackPropagationAlgo::learn().
Pattern::PatternInfo & operator[] | ( | Cluster * | cl | ) |
return the stored information
- Warning
- it silently create a new one if the Cluster passed is not present
Definition at line 63 of file learningalgorithm.cpp.
const DoubleVector & outputsOf | ( | Cluster * | cl | ) | const |
return stored information if exists, otherwise it return a zero vector
Definition at line 53 of file learningalgorithm.cpp.
Referenced by BackPropagationAlgo::calculateMSE(), and BackPropagationAlgo::learn().
|
virtual |
Save the actual status of parameters into the ConfigurationParameters object passed.
- Parameters
-
params the configuration parameters object on which save actual parameters prefix the prefix to use to access the object configuration parameters.
Implements ParameterSettable.
Definition at line 103 of file learningalgorithm.cpp.
References ConfigurationParameters::createParameter(), and ConfigurationParameters::startObjectParameters().
void setInputsOf | ( | Cluster * | cl, |
const DoubleVector & | ins | ||
) |
set the inputs associated with Cluster passed
Definition at line 26 of file learningalgorithm.cpp.
References Cluster::numNeurons().
Referenced by Pattern::configure().
void setInputsOutputsOf | ( | Cluster * | cl, |
const DoubleVector & | inputs, | ||
const DoubleVector & | outputs | ||
) |
set the both inputs and outputs associated with Cluster passed
Definition at line 36 of file learningalgorithm.cpp.
References Cluster::numNeurons().
void setOutputsOf | ( | Cluster * | cl, |
const DoubleVector & | ous | ||
) |
set the outputs associated with Cluster passed
Definition at line 31 of file learningalgorithm.cpp.
References Cluster::numNeurons().
Referenced by Pattern::configure().
The documentation for this class was generated from the following files:
- nnfw/include/learningalgorithm.h
- nnfw/src/learningalgorithm.cpp