libeblearn
ebl::table_module< T, Tstate > Class Template Reference

This module connects inputs and outputs with a connection table. More...

#include <ebl_arch.h>

Inheritance diagram for ebl::table_module< T, Tstate >:
ebl::module_1_1< T, Tstate, Tstate > ebl::module

List of all members.

Public Member Functions

 table_module (vector< intg > &inputs, intg total, const char *name="table_module")
virtual ~table_module ()
 Destructor.
virtual void fprop (mstate< Tstate > &in, mstate< Tstate > &out)
virtual void bprop (mstate< Tstate > &in, mstate< Tstate > &out)
virtual void bbprop (mstate< Tstate > &in, mstate< Tstate > &out)
virtual std::string describe ()
 Returns a string describing this module and its parameters.
virtual table_module< T, Tstate > * copy ()
 Returns a deep copy of current module.
virtual mfidxdim fprop_size (mfidxdim &isize)
virtual mfidxdim bprop_size (mfidxdim &osize)

Protected Attributes

vector< intg > table
 List of inputs indices.
intg total
 Total number of inputs.

Detailed Description

template<typename T, class Tstate = bbstate_idx<T>>
class ebl::table_module< T, Tstate >

This module connects inputs and outputs with a connection table.


Constructor & Destructor Documentation

template<typename T , class Tstate >
ebl::table_module< T, Tstate >::table_module ( vector< intg > &  inputs,
intg  total,
const char *  name = "table_module< T, Tstate >" 
)

Outputs will be the inputs arranged according to the list of input indices 'inputs'.


Member Function Documentation

template<typename T , class Tstate >
mfidxdim ebl::table_module< T, Tstate >::bprop_size ( mfidxdim &  osize) [virtual]

Returns input dimensions corresponding to multiple output dimensions 'osize'. Implementation of this method helps automatic scaling of input data but is optional.

Reimplemented from ebl::module_1_1< T, Tstate, Tstate >.

template<typename T , class Tstate >
mfidxdim ebl::table_module< T, Tstate >::fprop_size ( mfidxdim &  isize) [virtual]

Modifies multi-input dimensions 'isize' to be compliant with module's architecture, and returns corresponding output dimensions. Implementation of this method helps automatic scaling of input data but is optional.

Reimplemented from ebl::module_1_1< T, Tstate, Tstate >.


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