|
mlpack
3.0.4
|
This class is used to initialize the weight matrix with the Glorot Initialization method. More...
Public Member Functions | |
| GlorotInitializationType () | |
| Initialize the Glorot initialization object. More... | |
| template<typename eT > | |
| void | Initialize (arma::Mat< eT > &W, const size_t rows, const size_t cols) |
| Initialize the elements weight matrix with glorot initialization method. More... | |
| template<typename eT > | |
| void | Initialize (arma::Cube< eT > &W, const size_t rows, const size_t cols, const size_t slices) |
| Initialize the elements of the specified weight 3rd order tensor with glorot initialization method. More... | |
| template<> | |
| void | Initialize (arma::Mat< eT > &W, const size_t rows, const size_t cols) |
| template<> | |
| void | Initialize (arma::Mat< eT > &W, const size_t rows, const size_t cols) |
This class is used to initialize the weight matrix with the Glorot Initialization method.
The method is defined by
where
is the number of neurons in the outgoing layer,
represents the number of neurons in the ingoing layer. Here Normal Distribution may also be used if needed
For more information, see the following paper.
Definition at line 55 of file glorot_init.hpp.
|
inline |
Initialize the Glorot initialization object.
Definition at line 61 of file glorot_init.hpp.
| void Initialize | ( | arma::Mat< eT > & | W, |
| const size_t | rows, | ||
| const size_t | cols | ||
| ) |
Initialize the elements weight matrix with glorot initialization method.
| W | Weight matrix to initialize. |
| rows | Number of rows. |
| cols | Number of columns. |
|
inline |
Initialize the elements of the specified weight 3rd order tensor with glorot initialization method.
| W | Weight matrix to initialize. |
| rows | Number of rows. |
| cols | Number of columns. |
| slice | Numbers of slices. |
Definition at line 125 of file glorot_init.hpp.
|
inline |
Definition at line 96 of file glorot_init.hpp.
References GaussianInitialization::Initialize().
|
inline |
Definition at line 110 of file glorot_init.hpp.
References RandomInitialization::Initialize().
1.8.5