MachineIntelligenceCore:NeuralNets
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
mic::neural_nets::unit_tests::Tutorial2LayerNN Class Reference

Test Fixture - feed-forward net with 2 layers. A "formalized" example from a step-by-step tutorial: https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-example/. More...

#include <MultiLayerNeuralNetworkTests.hpp>

Inheritance diagram for mic::neural_nets::unit_tests::Tutorial2LayerNN:
Collaboration diagram for mic::neural_nets::unit_tests::Tutorial2LayerNN:

Public Member Functions

 Tutorial2LayerNN ()
 

Protected Member Functions

virtual void SetUp ()
 

Private Attributes

mic::mlnn::BackpropagationNeuralNetwork
< double > 
nn
 
mic::types::MatrixPtr< double > input_x
 
mic::types::MatrixPtr< double > target_y
 
mic::types::MatrixPtr< double > ffpass1_lin1_y
 
mic::types::MatrixPtr< double > ffpass1_sig1_y
 
mic::types::MatrixPtr< double > ffpass1_lin2_y
 
mic::types::MatrixPtr< double > ffpass1_sig2_y
 
double ffpass1_loss
 
mic::types::MatrixPtr< double > ffpass1_dy
 
mic::types::MatrixPtr< double > bwpass1_lin2_dW
 
mic::types::MatrixPtr< double > bwpass1_lin2_pW_updated
 
mic::types::MatrixPtr< double > bwpass1_lin1_dW
 
mic::types::MatrixPtr< double > bwpass1_lin1_pW_updated
 

Detailed Description

Test Fixture - feed-forward net with 2 layers. A "formalized" example from a step-by-step tutorial: https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-example/.

Author
tkornuta

Definition at line 79 of file MultiLayerNeuralNetworkTests.hpp.

Constructor & Destructor Documentation

Member Function Documentation

virtual void mic::neural_nets::unit_tests::Tutorial2LayerNN::SetUp ( )
inlineprotectedvirtual

Member Data Documentation

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::bwpass1_lin1_dW
private

Definition at line 166 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::bwpass1_lin1_pW_updated
private

Definition at line 167 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::bwpass1_lin2_dW
private

Definition at line 164 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::bwpass1_lin2_pW_updated
private

Definition at line 165 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::ffpass1_dy
private

Definition at line 161 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::ffpass1_lin1_y
private

Definition at line 157 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::ffpass1_lin2_y
private

Definition at line 157 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

double mic::neural_nets::unit_tests::Tutorial2LayerNN::ffpass1_loss
private

Definition at line 160 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by SetUp().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::ffpass1_sig1_y
private

Definition at line 157 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::ffpass1_sig2_y
private

Definition at line 157 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::input_x
private

Definition at line 151 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().

mic::mlnn::BackpropagationNeuralNetwork<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::nn
private

Definition at line 148 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by SetUp(), and Tutorial2LayerNN().

mic::types::MatrixPtr<double> mic::neural_nets::unit_tests::Tutorial2LayerNN::target_y
private

Definition at line 154 of file MultiLayerNeuralNetworkTests.hpp.

Referenced by Tutorial2LayerNN().


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