24 #ifndef __INSPECTABLE_H
25 #define __INSPECTABLE_H
55 typedef std::pair<iparamkey,iparamval const*>
iparampair;
58 typedef std::pair<iparamkey,std::pair< const matrix::Matrix*, bool > >
imatrixpair;
70 : vectorname(vectorname), biasname(biasname),
71 dimension(dimension), rank(rank), layername(layername) {}
81 : matrixname(matrixname), vector1(vector1), vector2(vector2) {}
91 struct matchName :
public std::unary_function<ILayer, bool> {
153 const std::string& descr = std::string());
172 bool only4x4AndDiag=
true,
173 const std::string& descr = std::string());
204 virtual void addInfoLines(std::list<std::string> infoLineList);
260 bool printParentName;
Matrix type.
Definition: matrix.h:65
std::list< IConnection > iconnectionlist
Definition: inspectable.h:88
Inspectable(const iparamkey &name="")
TYPEDEFS END.
Definition: inspectable.cpp:30
std::string vector1
vectorname of input layer
Definition: inspectable.h:83
std::pair< iparamkey, iparamval const * > iparampair
Definition: inspectable.h:55
std::list< imatrixpair > imatrixpairlist
Definition: inspectable.h:64
std::list< std::string > infoLinesList
Definition: inspectable.h:60
Matrixd Matrix
Definition: osgforwarddecl.h:47
std::string vectorname
Definition: inspectable.h:72
iparamkey name
Definition: inspectable.h:251
virtual ~Inspectable()
Definition: inspectable.cpp:28
struct Inspectable::IConnection IConnection
virtual const inspectableList & getInspectables() const
Returns the list containing all inspectable children.
Definition: inspectable.cpp:148
virtual void addInspectableDescription(const iparamkey &key, const std::string &descr)
adds a description for the given parameter using info-lines The line will start (appart from the #I) ...
Definition: inspectable.cpp:99
std::list< iparamval const * > iparamvalptrlist
Definition: inspectable.h:62
std::string iparamkey
Definition: inspectable.h:53
virtual void removeInfoLines()
Removes all infolines from this inspectable instance.
Definition: inspectable.cpp:123
std::string biasname
prefix of the internal parameter vector used as bias for the neurons e.g. "h"
Definition: inspectable.h:73
IConnection(const std::string &matrixname, const std::string &vector1, const std::string &vector2)
Definition: inspectable.h:80
Definition: inspectable.h:79
std::string matrixname
matrix name is the prefix of the internal parameter matrix e.g. "A"
Definition: inspectable.h:82
std::list< const Inspectable * > inspectableList
Definition: inspectable.h:97
virtual iparamvallist getInternalParams() const
Definition: inspectable.cpp:52
Definition: inspectable.h:67
virtual void addInspectableMatrix(const iparamkey &key, const matrix::Matrix *m, bool only4x4AndDiag=true, const std::string &descr=std::string())
This is the new style for adding inspectable values.
Definition: inspectable.cpp:92
virtual void addInspectable(Inspectable *insp)
Adds an inspectable as a child object.
Definition: inspectable.cpp:128
matchName(std::string name)
Definition: inspectable.h:92
iparampairlist mapOfValues
Definition: inspectable.h:253
ILayer(const std::string &vectorname, const std::string &biasname, int dimension, int rank, const std::string &layername)
Definition: inspectable.h:68
virtual void addInfoLine(std::string infoLine)
Adds an info line to this inspectable instance.
Definition: inspectable.cpp:104
std::string layername
name of the layer as displayed by the visualiser
Definition: inspectable.h:76
infoLinesList infoLineStringList
Definition: inspectable.h:256
Interface for inspectable objects.
Definition: inspectable.h:48
std::list< iparampair > iparampairlist
Definition: inspectable.h:63
std::string vector2
vectorname of output layer
Definition: inspectable.h:84
std::string name
Definition: inspectable.h:93
virtual const infoLinesList & getInfoLines() const
Returns all infolines added to this inspectable instance.
Definition: inspectable.cpp:118
double iparamval
Definition: inspectable.h:54
virtual ilayerlist getStructuralLayers() const
Specifies which parameter vector forms a structural layer (in terms of a neural network) The ordering...
Definition: inspectable.cpp:77
virtual iparamvalptrlist getInternalParamsPtr() const
be careful: matrices will be ignored
Definition: inspectable.cpp:67
int rank
rank of the layer (0 are input layers)
Definition: inspectable.h:75
struct Inspectable::ILayer ILayer
virtual const iparamkey getNameOfInspectable() const
return the name of the inspectable, getName() would conflict with Configurable::getName() too often ...
Definition: inspectable.cpp:143
virtual iconnectionlist getStructuralConnections() const
Specifies which parameter matrix forms a connection between layers (in terms of a neural network) The...
Definition: inspectable.cpp:81
int dimension
length of the vector (number of units)
Definition: inspectable.h:74
virtual iparamkeylist getInternalParamNames() const
The list of the names of all internal parameters given by getInternalParams().
Definition: inspectable.cpp:33
imatrixpairlist mapOfMatrices
Definition: inspectable.h:254
std::list< ILayer > ilayerlist
Definition: inspectable.h:87
virtual void setNameOfInspectable(const iparamkey &name)
set the name of the inspectable
Definition: inspectable.cpp:138
std::list< iparamkey > iparamkeylist
Definition: inspectable.h:59
std::list< iparamval > iparamvallist
Definition: inspectable.h:61
std::pair< iparamkey, std::pair< const matrix::Matrix *, bool > > imatrixpair
Definition: inspectable.h:58
bool operator()(ILayer l)
Definition: inspectable.h:94
nice predicate function for finding a Layer with its vectorname
Definition: inspectable.h:91
virtual void addInspectableValue(const iparamkey &key, iparamval const *val, const std::string &descr=std::string())
This is the new style for adding inspectable values.
Definition: inspectable.cpp:85
virtual void addInfoLines(std::list< std::string > infoLineList)
Adds a bunch of infolines with addInfoLine to this inspectable instance.
Definition: inspectable.cpp:110
virtual void removeInspectable(Inspectable *insp)
Removes an inspectable as a child object.
Definition: inspectable.cpp:133