#include <RecurrentNetwork.h>
Inheritance diagram for RecurrentNetwork:
Public Member Functions | |
RecurrentNetwork (uint initialInputCount=0, uint initialRecurrenCount=0) | |
If the counts are specified, default neurons are added. | |
void | addInput (real initialValue=0) |
void | addInput (InputNeuron *in) |
void | addNeuron (real bias=0, real activation=0) |
add a recurrent neuron | |
void | addNeuron (RecurrentNeuron *n) |
virtual const char * | getClassName () const |
Returns "RecurrentNetwork". | |
virtual uint | getInputCount () const |
number of input "neurons" | |
virtual uint | getOutputCount () const |
number of recurrent neurons | |
virtual void | setInput (const Vector &input) |
Actualise the input "neuron's" vector. | |
RecurrentNeuron & | getNeuron (uint index) |
get a recurrent neuron | |
RecurrentNeuron & | operator[] (uint index) |
InputNeuron & | getInputNeuron (uint index) |
virtual void | resetActivations (const Vector &activations) |
Force recurrent neuron's activations (usually done at startup) TODO: activations || outputs ? | |
virtual void | step () |
Steps the network in time (asynchronously). | |
virtual real | getNeuronOutput (uint neuron) |
get the output of particular neuron (usually, we're only interested in some neurons, not all) | |
virtual Vector | getOutput () const |
Just get the current state of recurrent neurons. | |
virtual Vector | getOutput (const Vector &input) |
Set input neurons, step and return all recurrent neuron's activations. | |
virtual void | save (const std::string &filename) |
NOT IMPLEMENTED by default. | |
Static Public Attributes | |
const int | INPUT_NEURONS_LABEL_OFFSET |
Protected Attributes | |
InputLayer | _inputs |
RecurrentLayer | _neurons |
uint | _time |
Outputs are read from some (or all) of the recurrent neurons
|
If the counts are specified, default neurons are added. You can add new neurons anytime you want - it's your newtork, anyway.. |
|
|
Here is the call graph for this function:
|
|
|
|
Here is the call graph for this function:
|
add a recurrent neuron
|
|
Returns "RecurrentNetwork".
Implements Network. |
|
number of input "neurons"
Reimplemented from Network. |
Here is the call graph for this function:
|
|
|
get a recurrent neuron
|
|
get the output of particular neuron (usually, we're only interested in some neurons, not all)
|
Here is the call graph for this function:
|
Set input neurons, step and return all recurrent neuron's activations.
Implements Network. |
|
Just get the current state of recurrent neurons.
|
|
number of recurrent neurons
Reimplemented from Network. |
Here is the call graph for this function:
|
|
Here is the call graph for this function:
|
Force recurrent neuron's activations (usually done at startup) TODO: activations || outputs ?
|
|
NOT IMPLEMENTED by default.
Implements Network. |
|
Actualise the input "neuron's" vector. This is usually called before each step(), but it's not neccesary. |
|
Steps the network in time (asynchronously).
|
|
|
|
|
|
|
|
|