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

#include <ebl_basic.h>

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

List of all members.

Public Member Functions

 fsum_module (bool div=false, float split=1.0)
virtual ~fsum_module ()
 destructor
virtual void fprop (Tstate &in, Tstate &out)
 forward propagation from in to out
virtual void bprop (Tstate &in, Tstate &out)
 backward propagation from out to in
virtual void bbprop (Tstate &in, Tstate &out)
 second-derivative backward propagation from out to in

Protected Attributes

bool div
 Normalize by number of elements used for sum.
float split
 Sum by groups of n elements, n = features * split.

Detailed Description

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

This modules iterates of the last two dimenions and takes the sum of the remaining dimensions.


Constructor & Destructor Documentation

template<typename T , class Tstate >
ebl::fsum_module< T, Tstate >::fsum_module ( bool  div = false,
float  split = 1.0 
)

constructor.

Parameters:
divIf true, divide the sum by the number of elements used.
splitIf non-1, sum every consecutive groups of size (number of features) * split.

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