Neural
Neural::Conv_Layer Class Reference

#include <conv_layer.h>

Inheritance diagram for Neural::Conv_Layer:
Collaboration diagram for Neural::Conv_Layer:

Public Member Functions

 Conv_Layer (std::tuple< int, int, int > dimensions, std::tuple< int, int, int > filter, int stride, int padding)
 
virtual Eigen::MatrixXd Forward_propagation (Eigen::MatrixXd input)
 
virtual Eigen::MatrixXd Backward_propagation (Eigen::MatrixXd output_error, float learning_rate)
 
virtual Json::Value toJSON ()
 
Eigen::MatrixXd Init_filters (int dim, int nb)
 
Eigen::MatrixXd GetWeights ()
 
Eigen::MatrixXd GetBias ()
 
- Public Member Functions inherited from Neural::Layer
bool AsWeights ()
 

Protected Attributes

int m_depth
 
int m_height
 
int m_width
 
int m_filter_size
 
int m_nb_filters
 
int m_stride
 
int m_padding
 
RowMajMat m_weights
 
RowMajMat m_bias
 
RowMajMat m_filter
 
- Protected Attributes inherited from Neural::Layer
Eigen::MatrixXd m_input
 
Eigen::MatrixXd m_output
 
bool m_as_weight
 

Constructor & Destructor Documentation

◆ Conv_Layer()

Conv_Layer::Conv_Layer ( std::tuple< int, int, int >  dimensions,
std::tuple< int, int, int >  filter,
int  stride,
int  padding 
)

Member Function Documentation

◆ Backward_propagation()

MatrixXd Conv_Layer::Backward_propagation ( Eigen::MatrixXd  output_error,
float  learning_rate 
)
virtual

Implements Neural::Layer.

◆ Forward_propagation()

MatrixXd Conv_Layer::Forward_propagation ( Eigen::MatrixXd  input)
virtual

Implements Neural::Layer.

◆ GetBias()

MatrixXd Conv_Layer::GetBias ( )

◆ GetWeights()

MatrixXd Conv_Layer::GetWeights ( )

◆ Init_filters()

MatrixXd Conv_Layer::Init_filters ( int  dim,
int  nb 
)

◆ toJSON()

Json::Value Conv_Layer::toJSON ( )
virtual

Implements Neural::Layer.

Member Data Documentation

◆ m_bias

RowMajMat Neural::Conv_Layer::m_bias
protected

◆ m_depth

int Neural::Conv_Layer::m_depth
protected

◆ m_filter

RowMajMat Neural::Conv_Layer::m_filter
protected

◆ m_filter_size

int Neural::Conv_Layer::m_filter_size
protected

◆ m_height

int Neural::Conv_Layer::m_height
protected

◆ m_nb_filters

int Neural::Conv_Layer::m_nb_filters
protected

◆ m_padding

int Neural::Conv_Layer::m_padding
protected

◆ m_stride

int Neural::Conv_Layer::m_stride
protected

◆ m_weights

RowMajMat Neural::Conv_Layer::m_weights
protected

◆ m_width

int Neural::Conv_Layer::m_width
protected

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