This class is used to initialize weigth matrix with a gaussian. More...
Public Member Functions | |
GaussianInitialization (const double mean=0, const double variance=1) | |
Initialize the gaussian with the given mean and variance. More... | |
template < typename eT > | |
void | Initialize (arma::Mat< eT > &W, const size_t rows, const size_t cols) |
Initialize the elements weight matrix using a Gaussian Distribution. More... | |
template < typename eT > | |
void | Initialize (arma::Mat< eT > &W) |
Initialize the elements weight matrix using a Gaussian Distribution. More... | |
template < typename eT > | |
void | Initialize (arma::Cube< eT > &W, const size_t rows, const size_t cols, const size_t slices) |
Initialize randomly the elements of the specified weight 3rd order tensor. More... | |
template < typename eT > | |
void | Initialize (arma::Cube< eT > &W) |
Initialize randomly the elements of the specified weight 3rd order tensor. More... | |
This class is used to initialize weigth matrix with a gaussian.
Definition at line 28 of file gaussian_init.hpp.
|
inline |
Initialize the gaussian with the given mean and variance.
mean | Mean of the gaussian. |
variance | Variance of the gaussian. |
Definition at line 37 of file gaussian_init.hpp.
|
inline |
Initialize the elements weight matrix using a Gaussian Distribution.
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
Definition at line 51 of file gaussian_init.hpp.
References mlpack::math::RandNormal().
Referenced by GlorotInitializationType< Uniform >::Initialize().
|
inline |
Initialize the elements weight matrix using a Gaussian Distribution.
W | Weight matrix to initialize. |
Definition at line 67 of file gaussian_init.hpp.
References Log::Fatal, and mlpack::math::RandNormal().
|
inline |
Initialize randomly the elements of the specified weight 3rd order tensor.
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
slices | Number of slices. |
Definition at line 84 of file gaussian_init.hpp.
|
inline |
Initialize randomly the elements of the specified weight 3rd order tensor.
W | Weight matrix to initialize. |
Definition at line 102 of file gaussian_init.hpp.
References Log::Fatal.