This class is used to initialize randomly the weight matrix.
More...
#include <random_init.hpp>
|
| RandomInitialization (const double lowerBound=-1, const double upperBound=1) |
| Initialize the random initialization rule with the given lower bound and upper bound. More...
|
|
| RandomInitialization (const double bound) |
| Initialize the random initialization rule with the given bound. More...
|
|
template<typename eT > |
void | Initialize (arma::Mat< eT > &W, const size_t rows, const size_t cols) |
| Initialize randomly the elements of the specified weight matrix. More...
|
|
template<typename eT > |
void | Initialize (arma::Mat< eT > &W) |
| Initialize randomly 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 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...
|
|
This class is used to initialize randomly the weight matrix.
◆ RandomInitialization() [1/2]
mlpack::ann::RandomInitialization::RandomInitialization |
( |
const double |
lowerBound = -1 , |
|
|
const double |
upperBound = 1 |
|
) |
| |
|
inline |
Initialize the random initialization rule with the given lower bound and upper bound.
- Parameters
-
lowerBound | The number used as lower bound. |
upperBound | The number used as upper bound. |
◆ RandomInitialization() [2/2]
mlpack::ann::RandomInitialization::RandomInitialization |
( |
const double |
bound | ) |
|
|
inline |
Initialize the random initialization rule with the given bound.
Using the negative of the bound as lower bound and the positive bound as upper bound.
- Parameters
-
bound | The number used as lower bound |
◆ Initialize() [1/4]
template<typename eT >
void mlpack::ann::RandomInitialization::Initialize |
( |
arma::Mat< eT > & |
W, |
|
|
const size_t |
rows, |
|
|
const size_t |
cols |
|
) |
| |
|
inline |
Initialize randomly 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::RandomInitialization::Initialize |
( |
arma::Mat< eT > & |
W | ) |
|
|
inline |
Initialize randomly the elements of the specified weight matrix.
- Parameters
-
W | Weight matrix to initialize. |
◆ Initialize() [3/4]
template<typename eT >
void mlpack::ann::RandomInitialization::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
-
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::RandomInitialization::Initialize |
( |
arma::Cube< eT > & |
W | ) |
|
|
inline |
Initialize randomly 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: