|
mlpack 3.4.2
|
This class is used to initialize the weight matrix with the Glorot Initialization method. More...
#include <glorot_init.hpp>
Public Member Functions | |
| GlorotInitializationType () | |
| Initialize the Glorot initialization object. 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<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::Mat< eT > &W) |
| Initialize the elements weight matrix with glorot initialization method. More... | |
| void | Initialize (arma::Mat< eT > &W) |
| void | Initialize (arma::Mat< eT > &W) |
| 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... | |
| void | Initialize (arma::Mat< eT > &W, const size_t rows, const size_t cols) |
| 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
![\begin{eqnarray*}
\mathrm{Var}[w_i] &=& \frac{2}{n_i + n_{i+1}} \\
w_i \sim \mathrm{U}[-\frac{\sqrt{6}}{\sqrt{n_i + n_{i+1}}},
\frac{\sqrt{6}}{\sqrt{n_i + n_{i+1}}}]
\end{eqnarray*}](form_102.png)
where 

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.
|
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 |
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.
| void Initialize | ( | arma::Mat< eT > & | W | ) |
Initialize the elements weight matrix with glorot initialization method.
| W | Weight matrix to initialize. |
|
inline |
Definition at line 127 of file glorot_init.hpp.
References Log::Fatal, and GaussianInitialization::Initialize().
|
inline |
Definition at line 154 of file glorot_init.hpp.
References Log::Fatal, and RandomInitialization::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. |
|
inline |
Definition at line 113 of file glorot_init.hpp.
References GaussianInitialization::Initialize().
|
inline |
Definition at line 139 of file glorot_init.hpp.
References RandomInitialization::Initialize().
1.9.5