This class is used to initialize weight matrix with constant values.
More...
#include <const_init.hpp>
|
| ConstInitialization (const double initVal=0) |
| Create the ConstantInitialization object.
|
|
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.
|
|
double & | initValue () |
| Modify the initialization value.
|
|
This class is used to initialize weight matrix with constant values.
◆ Initialize() [1/4]
template<typename eT >
void mlpack::ann::ConstInitialization::Initialize |
( |
arma::Mat< eT > & |
W, |
|
|
const size_t |
rows, |
|
|
const size_t |
cols |
|
) |
| |
|
inline |
Initialize the elements of the specified weight matrix.
- Parameters
-
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
◆ Initialize() [2/4]
template<typename eT >
void mlpack::ann::ConstInitialization::Initialize |
( |
arma::Mat< eT > & |
W | ) |
|
|
inline |
Initialize the elements of the specified weight matrix.
- Parameters
-
W | Weight matrix to initialize. |
◆ Initialize() [3/4]
template<typename eT >
void mlpack::ann::ConstInitialization::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
-
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
slices | Number of slices. |
◆ Initialize() [4/4]
template<typename eT >
void mlpack::ann::ConstInitialization::Initialize |
( |
arma::Cube< eT > & |
W | ) |
|
|
inline |
Initialize the elements of the specified weight (3rd order tensor).
- Parameters
-
W | Weight matrix to initialize. |
The documentation for this class was generated from the following file: