# Deep network: src/layers/full_connected.hpp Source File

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