GaussianInitialization Class Reference

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...

 

Detailed Description

This class is used to initialize weigth matrix with a gaussian.

Definition at line 26 of file gaussian_init.hpp.

Constructor & Destructor Documentation

◆ GaussianInitialization()

GaussianInitialization ( const double  mean = 0,
const double  variance = 1 
)
inline

Initialize the gaussian with the given mean and variance.

Parameters
meanMean of the gaussian.
varianceVariance of the gaussian.

Definition at line 35 of file gaussian_init.hpp.

Member Function Documentation

◆ Initialize() [1/4]

void Initialize ( arma::Mat< eT > &  W,
const size_t  rows,
const size_t  cols 
)
inline

Initialize the elements weight matrix using a Gaussian Distribution.

Parameters
WWeight matrix to initialize.
rowsNumber of rows.
colsNumber of columns.

Definition at line 49 of file gaussian_init.hpp.

References mlpack::math::RandNormal().

Referenced by GaussianInitialization::Initialize(), and GlorotInitializationType< Uniform >::Initialize().

◆ Initialize() [2/4]

void Initialize ( arma::Mat< eT > &  W)
inline

Initialize the elements weight matrix using a Gaussian Distribution.

Parameters
WWeight matrix to initialize.

Definition at line 65 of file gaussian_init.hpp.

References Log::Fatal, and mlpack::math::RandNormal().

◆ Initialize() [3/4]

void Initialize ( arma::Cube< eT > &  W,
const size_t  rows,
const size_t  cols,
const size_t  slices 
)
inline

Initialize randomly the elements of the specified weight 3rd order tensor.

Parameters
WWeight matrix to initialize.
rowsNumber of rows.
colsNumber of columns.
slicesNumber of slices.

Definition at line 82 of file gaussian_init.hpp.

References GaussianInitialization::Initialize().

◆ Initialize() [4/4]

void Initialize ( arma::Cube< eT > &  W)
inline

Initialize randomly the elements of the specified weight 3rd order tensor.

Parameters
WWeight matrix to initialize.

Definition at line 100 of file gaussian_init.hpp.

References Log::Fatal, and GaussianInitialization::Initialize().


The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-git/src/mlpack/methods/ann/init_rules/gaussian_init.hpp