Pattern Class Reference

Pattern object. More...

Collaboration diagram for Pattern:

Collaboration graph
[legend]
List of all members.

Constructors

 Pattern ()
 ~Pattern ()

Interface

void setInputsOf (Cluster *, const RealVec &)
void setOutputsOf (Cluster *, const RealVec &)
void setInputsOutputsOf (Cluster *, const RealVec &inputs, const RealVec &outputs)
const RealVecinputsOf (Cluster *) const
const RealVecoutputsOf (Cluster *) const
PatternInfo & operator[] (Cluster *)

Detailed Description

Motivation
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
Description
Pattern simply associates inputs/outputs pairs to Clusters:
  Pattern pat;
  pat->setInputsOf( anInputCluster, Inputs );
  pat->setOutputsOf( anOutputCluster, Outputs );
  pat->setInputOutputsOf( anHiddenClusterToReset, Inputs, Outputs );
  //--- retrieve stored information:
  pat[aCluster].inputs;
  pat[anotherCluster].outputs;
  //--- add/modify informations:
  pat[aNewCluster].outputs.assign( aRealVecOfData );
  pat[aNewCluster].outputs += 3.0;
Warnings
Pay attention when you use operator[] because it silently add new data. Like std::map::operator[]
Todo:
Supports for storing all properties of Cluster... storing Linkers info ?!?!


Constructor & Destructor Documentation

Pattern (  )  [inline]

Construct an empty Pattern

~Pattern (  )  [inline]

Destructor


Member Function Documentation

void setInputsOf ( Cluster ,
const RealVec  
)

set the inputs associated with Cluster passed

void setOutputsOf ( Cluster ,
const RealVec  
)

set the outputs associated with Cluster passed

void setInputsOutputsOf ( Cluster ,
const RealVec inputs,
const RealVec outputs 
)

set the both inputs and outputs associated with Cluster passed

const RealVec& inputsOf ( Cluster  )  const

return stored information if exists, otherwise it return a zero vector

const RealVec& outputsOf ( Cluster  )  const

return stored information if exists, otherwise it return a zero vector

PatternInfo& operator[] ( Cluster  ) 

return the stored information

Warning:
it silently create a new one if the Cluster passed is not present


The documentation for this class was generated from the following file:
BerliOS Developer Logo Valid XHTML 1.0 Transitional Valid CSS!