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 | |
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 | |
void | Initialize (arma::Mat< eT > &W) |
Initialize the elements weight matrix with glorot initialization method. More... | |
template | |
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::Cube< eT > &W) |
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) |
template<> | |
void | Initialize (arma::Mat< eT > &W, const size_t rows, const size_t cols) |
template<> | |
void | Initialize (arma::Mat< eT > &W) |
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. |
void Initialize | ( | arma::Mat< eT > & | W | ) |
Initialize the elements weight matrix with glorot initialization method.
W | Weight matrix to initialize. |
|
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. |
slices | Number of slices. |
Definition at line 167 of file glorot_init.hpp.
|
inline |
Initialize the elements of the specified weight 3rd order tensor with glorot initialization method.
W | Weight matrix to initialize. |
Definition at line 181 of file glorot_init.hpp.
References Log::Fatal.
|
inline |
Definition at line 113 of file glorot_init.hpp.
References GaussianInitialization::Initialize().
|
inline |
Definition at line 127 of file glorot_init.hpp.
References Log::Fatal, and GaussianInitialization::Initialize().
|
inline |
Definition at line 139 of file glorot_init.hpp.
References RandomInitialization::Initialize().
|
inline |
Definition at line 154 of file glorot_init.hpp.
References Log::Fatal, and RandomInitialization::Initialize().