org.joone.engine
Class RTRLLearnerFactory.InitialState

java.lang.Object
  extended by org.joone.engine.RTRLLearnerFactory.InitialState
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
RTRLLearnerFactory

protected class RTRLLearnerFactory.InitialState
extends java.lang.Object
implements java.io.Serializable

An initial state. An initial state is, in joone, associated with the initial values loaded into a context layer. For now, we simply utilise this initial state although we also could employ RTRL to optimise the initial state as part of the training process. We use the given values, typically 0, for the initial state. The initial state is set outside of the RTRL implementation and not even used here. A future version may also optimise this and then we'll use this class.

See Also:
Serialized Form

Field Summary
protected  int index
          The index into the layer at which this initial state is found
protected  int k
          The node in z into which this state will be fired
protected  ContextLayer layer
          The context layer that this state is associated with
 
Constructor Summary
RTRLLearnerFactory.InitialState(ContextLayer layer, int index, int k)
          Create a new initial state
 
Method Summary
 void addInitialState(double delta)
          Change the initial state by adding to it, also update the state's delta
 double getInitialState()
          Get the initial state
 void setInitialState(double initialState)
          Set the initial state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layer

protected ContextLayer layer
The context layer that this state is associated with


index

protected int index
The index into the layer at which this initial state is found


k

protected int k
The node in z into which this state will be fired

Constructor Detail

RTRLLearnerFactory.InitialState

public RTRLLearnerFactory.InitialState(ContextLayer layer,
                                       int index,
                                       int k)
Create a new initial state

Parameters:
layer - the context layer from which the initial state fires
index - the index into that layer from which it fires
k - the index of the node from which it fires
Method Detail

setInitialState

public void setInitialState(double initialState)
Set the initial state


getInitialState

public double getInitialState()
Get the initial state


addInitialState

public void addInitialState(double delta)
Change the initial state by adding to it, also update the state's delta



Submit Feedback to pmarrone@users.sourceforge.net