Neural
Neural::Activation_Layer Class Reference

#include <activation_layer.h>

Inheritance diagram for Neural::Activation_Layer:
Collaboration diagram for Neural::Activation_Layer:

Public Member Functions

 Activation_Layer ()
 
 Activation_Layer (Activation *a)
 
 ~Activation_Layer ()
 
virtual Eigen::MatrixXd Forward_propagation (Eigen::MatrixXd input_data)
 
virtual Eigen::MatrixXd Backward_propagation (Eigen::MatrixXd output_error, float learning_rate)
 
virtual Json::Value toJSON ()
 
- Public Member Functions inherited from Neural::Layer
bool AsWeights ()
 

Public Attributes

Activationp_activation
 

Additional Inherited Members

- Protected Attributes inherited from Neural::Layer
Eigen::MatrixXd m_input
 
Eigen::MatrixXd m_output
 
bool m_as_weight
 

Constructor & Destructor Documentation

◆ Activation_Layer() [1/2]

Activation_Layer::Activation_Layer ( )

Constructor of the Activation Layer

◆ Activation_Layer() [2/2]

Activation_Layer::Activation_Layer ( Activation a)

◆ ~Activation_Layer()

Activation_Layer::~Activation_Layer ( )

Member Function Documentation

◆ Backward_propagation()

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

Performs retro propagation on the activation layer

Parameters
output_errorThe inputs of the Layer = The outputs of the previous Layer, or The data of the first Layer
learning_rateThe step size at each iteration
Returns
Matrix of derived activation function

Implements Neural::Layer.

◆ Forward_propagation()

MatrixXd Activation_Layer::Forward_propagation ( Eigen::MatrixXd  input_data)
virtual

Performs forward propagation on the activation layer

Parameters
input_dataThe inputs of the Layer = The outputs of the previous Layer, or The data of the first Layer
Returns
Matrix of activation function

Implements Neural::Layer.

◆ toJSON()

Json::Value Activation_Layer::toJSON ( )
virtual

Implements Neural::Layer.

Member Data Documentation

◆ p_activation

Activation* Neural::Activation_Layer::p_activation

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