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

 
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/2]

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/2]

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.

Definition at line 56 of file const_init.hpp.

◆ InitValue()

double const& InitValue ( ) const
inline

Get the initialization value.

Definition at line 66 of file const_init.hpp.

◆ initValue()

double& initValue ( )
inline

Modify the initialization value.

Definition at line 68 of file const_init.hpp.


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