This class is used to initialize the weight matrix with the orthogonal matrix initialization.
More...
#include <orthogonal_init.hpp>
|
| OrthogonalInitialization (const double gain=1.0) |
| Initialize the orthogonal matrix initialization rule with the given gain. 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 with the orthogonal matrix initialization method. More...
|
|
template<typename eT > |
void | Initialize (arma::Mat< eT > &W) |
| Initialize the elements of the specified weight matrix with the orthogonal matrix initialization method. 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 with the orthogonal matrix initialization method. More...
|
|
template<typename eT > |
void | Initialize (arma::Cube< eT > &W) |
| Initialize the elements of the specified weight 3rd order tensor with the orthogonal matrix initialization method. More...
|
|
This class is used to initialize the weight matrix with the orthogonal matrix initialization.
◆ OrthogonalInitialization()
mlpack::ann::OrthogonalInitialization::OrthogonalInitialization |
( |
const double |
gain = 1.0 | ) |
|
|
inline |
Initialize the orthogonal matrix initialization rule with the given gain.
- Parameters
-
◆ Initialize() [1/4]
template<typename eT >
void mlpack::ann::OrthogonalInitialization::Initialize |
( |
arma::Mat< eT > & |
W, |
|
|
const size_t |
rows, |
|
|
const size_t |
cols |
|
) |
| |
|
inline |
Initialize the elements of the specified weight matrix with the orthogonal matrix initialization method.
- Parameters
-
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
◆ Initialize() [2/4]
template<typename eT >
void mlpack::ann::OrthogonalInitialization::Initialize |
( |
arma::Mat< eT > & |
W | ) |
|
|
inline |
Initialize the elements of the specified weight matrix with the orthogonal matrix initialization method.
- Parameters
-
W | Weight matrix to initialize. |
◆ Initialize() [3/4]
template<typename eT >
void mlpack::ann::OrthogonalInitialization::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 with the orthogonal matrix initialization method.
- 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::OrthogonalInitialization::Initialize |
( |
arma::Cube< eT > & |
W | ) |
|
|
inline |
Initialize the elements of the specified weight 3rd order tensor with the orthogonal matrix initialization method.
- Parameters
-
W | Weight matrix to initialize. |
The documentation for this class was generated from the following file: