NAME
llm_net -- llm net as a NST class container
PROTOTYPE
unitptr llm_net( int iNodes, int iDimInp, int iDimOut, char *pcOptions, unitptr uHost)
ARGUMENTS
- int iNodes
- nr of nodes
- int iDimInp
- nr of nodes
- int iDimOut
- nr of nodes
- char *pcOptions
- options (unused)
- unitptr uHost
- host unit
RETURN VALUE:
A pointer to the created unit or NULL in the case of an error.
DESCRIPTION:
The class container itself implements the exec method.
Its method subunits implement various other methods for the
llm net. It has one named subunit for each of the following methods
of base class llm:
container:adapt to invoke method llm:adapt()
container:set to invoke methods llm:set:*
container:get to invoke methods llm:get:*
container:node to invoke methods llm:node:*
container:init to invoke method llm::init()
where container denotes the name that is given to the created unit
after return from this constructor function.
EXECUTION:
Execution of the created unit executes the llm net. Execution of
any of its named subunits (via a use_method unit) invokes the
corresponding C++ class method. The interface of each named
subunit provides inputs and outputs for the corresponding method.
INTERFACE OF NAMED SUBUNITS:
Subunit container:adapt (invokes method llm:adapt):
- X_in[iDimInp]:
- (packed input field 0) x input
- Y_in[iDimOut]:
- (packed input field 1) target output
Subunit container:adapt (invokes method llm::adapt):
...
Subunit container:set_inp (invokes method llm::set_inp):
...
Subunit container:set_matrix (invokes method llm::set_matrix):
...
Subunit container:get_node (invokes method llm::get_node):
...
Subunit container:get_aux (invokes method llm::get_aux):
returns the the squared distance to input dx^2[k] of specified node k, the
radius sig[k], and the activation z[k], and
and the local eps_in[k], eps_out[k], eps_mat[k]
Subunit container:init (invokes method llm::init):
...
SEE ALSO:
FILE
/homes/jontrup/nst5/man/../o.sol2//../foldersrc/nst_llm.C