Reinforcement Learning Toolbox 2.0
last updated:
General
Documentation
Manual
Tutorial
Class Reference
Master Thesis
Examples
Related Papers
Downloads
Links
News
mailto:webmaster
Main Page     Class Hierarchy   Compound List   File List   Compound Members   File Members

CTorchFunction Class Reference

Interface to integrate Torch Machines in the learning systems. More...

#include <ctorchvfunction.h>

Inheritance diagram for CTorchFunction:

CTorchGradientFunction List of all members.


Public Member Functions

  CTorchFunction (Machine *machine)
  Initialises the input sequence with one frame of size |continuousStates| + |discreteStates| of the properties object.

virtual  ~CTorchFunction ()
virtual Machine *  getMachine ()
  Returns the torch machine.

virtual double  getValueFromMachine (Sequence *state)


Protected Attributes

Machine *  machine
  Pointer to the torch machine.

Sequence *  input
  The input sequence, needed to feed the torch machines.


Detailed Description

Interface to integrate Torch Machines in the learning systems.

This class only handels the output of the torch machines. It provides a function for transforming a RIL toolbox state object in a torch input sequence. Therefore the continuous and then the discrete state variables, are written in the sequence. When the function getValue is called the state is converted into the torch sequence and then passed to the torch machine, and the ouput of the machine is returned. Learning (i.e. setting and updating the Values) can only be used with the class CVFunctionFromGradientFunction.

See also:
CVFunctionFromGradientFunction

Constructor & Destructor Documentation

CTorchFunction::CTorchFunction Machine *  machine  ) 
 

Initialises the input sequence with one frame of size |continuousStates| + |discreteStates| of the properties object.

virtual CTorchFunction::~CTorchFunction  )  [virtual]
 

Member Function Documentation

virtual Machine* CTorchFunction::getMachine  )  [virtual]
 

Returns the torch machine.

virtual double CTorchFunction::getValueFromMachine Sequence *  state  )  [virtual]
 

Member Data Documentation

Sequence* CTorchFunction::input [protected]
 

The input sequence, needed to feed the torch machines.

Machine* CTorchFunction::machine [protected]
 

Pointer to the torch machine.


The documentation for this class was generated from the following file: