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::Mat< eT > &W) |
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 < typename eT > | |
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) |
template < typename Archive > | |
void | serialize (Archive &, const uint32_t) |
Serialize the initialization. More... | |
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 53 of file glorot_init.hpp.
|
inline |
Initialize the Glorot initialization object.
Definition at line 59 of file glorot_init.hpp.
References GlorotInitializationType< Uniform >::Initialize().
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. |
Referenced by GlorotInitializationType< Uniform >::GlorotInitializationType(), and GlorotInitializationType< Uniform >::Initialize().
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 171 of file glorot_init.hpp.
References GlorotInitializationType< Uniform >::Initialize().
|
inline |
Initialize the elements of the specified weight 3rd order tensor with glorot initialization method.
W | Weight matrix to initialize. |
Definition at line 185 of file glorot_init.hpp.
References Log::Fatal, and GlorotInitializationType< Uniform >::Initialize().
|
inline |
Definition at line 117 of file glorot_init.hpp.
References GaussianInitialization::Initialize().
|
inline |
Definition at line 131 of file glorot_init.hpp.
References Log::Fatal, and GaussianInitialization::Initialize().
|
inline |
Definition at line 143 of file glorot_init.hpp.
References RandomInitialization::Initialize().
|
inline |
Definition at line 158 of file glorot_init.hpp.
References Log::Fatal, and RandomInitialization::Initialize().
|
inline |
Serialize the initialization.
(Nothing to serialize for this one.)
Definition at line 112 of file glorot_init.hpp.