ConstInitialization Class Reference

This class is used to initialize weight matrix with constant values. More...

Public Member Functions

 ConstInitialization (const double initVal=0)
 Create the ConstantInitialization object. More...

 
template
<
typename
eT
>
void Initialize (arma::Mat< eT > &W, const size_t rows, const size_t cols)
 Initialize the elements of the specified weight matrix. More...

 
template
<
typename
eT
>
void Initialize (arma::Mat< eT > &W)
 Initialize the elements of the specified weight matrix. 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). More...

 
template
<
typename
eT
>
void Initialize (arma::Cube< eT > &W)
 Initialize the elements of the specified weight (3rd order tensor). More...

 
double const & InitValue () const
 Get the initialization value. More...

 
double & initValue ()
 Modify the initialization value. More...

 

Detailed Description

This class is used to initialize weight matrix with constant values.

Definition at line 25 of file const_init.hpp.

Constructor & Destructor Documentation

◆ ConstInitialization()

ConstInitialization ( const double  initVal = 0)
inline

Create the ConstantInitialization object.

Definition at line 31 of file const_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 of the specified weight matrix.

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

Definition at line 42 of file const_init.hpp.

◆ Initialize() [2/4]

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

Initialize the elements of the specified weight matrix.

Parameters
WWeight matrix to initialize.

Definition at line 56 of file const_init.hpp.

References Log::Fatal.

◆ Initialize() [3/4]

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

Initialize 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 73 of file const_init.hpp.

◆ Initialize() [4/4]

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

Initialize the elements of the specified weight (3rd order tensor).

Parameters
WWeight matrix to initialize.

Definition at line 90 of file const_init.hpp.

References Log::Fatal.

◆ InitValue()

double const& InitValue ( ) const
inline

Get the initialization value.

Definition at line 99 of file const_init.hpp.

◆ initValue()

double& initValue ( )
inline

Modify the initialization value.

Definition at line 101 of file const_init.hpp.


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