libeblearn
|
#include <ebl_basic.h>
Public Member Functions | |
power_module (T p) | |
virtual | ~power_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 |
x^p module. p can be nay real number the derivatives are implemented using polynomial derivative rules, so they are exact The derivative implementation divides output by input to get x^(p-1), therefore this module assumes that the :input:x and :output:x is not modified until bprop
ebl::power_module< T, Tstate >::power_module | ( | T | p | ) |
is double number, every element of input is raised to its
th power.
void ebl::power_module< T, Tstate >::bbprop | ( | Tstate & | in, |
Tstate & | out | ||
) | [virtual] |
second-derivative backward propagation from out to in
tt = (x^(p-1))^2
tt = outddx*(x^(p-1))^2
Reimplemented from ebl::module_1_1< T, Tstate >.
void ebl::power_module< T, Tstate >::bprop | ( | Tstate & | in, |
Tstate & | out | ||
) | [virtual] |
backward propagation from out to in
tt = outdx*x^(p-1)
Reimplemented from ebl::module_1_1< T, Tstate >.