Deep network
|
#include <activation.hpp>
Public Member Functions | |
ActivationLayer (const size_t) | |
~ActivationLayer () | |
Vector | feed_forward (Vector x) override |
void | init_nabla () override |
Vector | back_propagation (Vector e) override |
void | update (Real eta) override |
Public Member Functions inherited from Layer::Layer | |
Layer (size_t n, size_t m) | |
~Layer () | |
size_t | get_input_size () const |
size_t | get_output_size () const |
Vector | get_output () const |
virtual Vector | feed_forward (Vector x)=0 |
virtual void | init_nabla ()=0 |
virtual Vector | back_propagation (Vector e)=0 |
virtual void | update (Real eta)=0 |
Additional Inherited Members | |
Public Attributes inherited from Layer::Layer | |
string | name |
size_t | n |
size_t | m |
Vector | x |
Vector | y |
Vector | d |
Class for activation layer. The Output vector is obtained by applying activation map to each entry of the input vector.
|
inline |
|
inline |
|
inlineoverridevirtual |
\(d[i]:=\alpha'(x[i])\times \e[i]\) where \(\alpha\) is the activation map and $e$ the difference output vector.
Implements Layer::Layer.
|
inlineoverridevirtual |
\(y[i]:=\alpha(x[i])\) where \(\alpha\) is the activation map.
Implements Layer::Layer.
|
inlineoverridevirtual |
Null.
Implements Layer::Layer.
|
inlineoverridevirtual |
Null.
Implements Layer::Layer.