Deep network
full_connected.hpp
Go to the documentation of this file.
1#ifndef FULL_CONNECTED_LAYER_HPP
2#define FULL_CONNECTED_LAYER_HPP
3
4
5#include <random>
6#include "layer.hpp"
7
8namespace Layer{
10 public:
15 FullConnectedLayer(size_t n,size_t m);
17 void init_standard();
18 void init(Real mu,Real sigma);
19 Vector feed_forward(Vector x) override;
20 void init_nabla() override;
21 Vector back_propagation(Vector e) override;
22 void update(Real eta) override;
23 };
24}
25#endif
Definition: full_connected.hpp:9
~FullConnectedLayer()
Definition: full_connected.cpp:11
FullConnectedLayer(size_t n, size_t m)
Definition: full_connected.cpp:4
Vector b
Definition: full_connected.hpp:11
Vector nabla_b
Definition: full_connected.hpp:13
Vector back_propagation(Vector e) override
Definition: full_connected.cpp:67
void init_standard()
Definition: full_connected.cpp:31
Vector w
Definition: full_connected.hpp:12
void update(Real eta) override
Definition: full_connected.cpp:89
void init(Real mu, Real sigma)
Definition: full_connected.cpp:19
Vector nabla_w
Definition: full_connected.hpp:14
Vector feed_forward(Vector x) override
Definition: full_connected.cpp:44
void init_nabla() override
Definition: full_connected.cpp:57
size_t m
Definition: layer.hpp:29
size_t n
Definition: layer.hpp:26
Vector x
Definition: layer.hpp:32
Definition: activation.hpp:7
double Real
Definition: vector.hpp:9
Real * Vector
Definition: vector.hpp:45