|
mlpack
master
|
This class is used to initialize randomly the weight matrix. More...
Public Member Functions | |
| 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::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... | |
Private Attributes | |
| const double | lowerBound |
| The number used as lower bound. More... | |
| const double | upperBound |
| The number used as upper bound. More... | |
This class is used to initialize randomly the weight matrix.
Definition at line 24 of file random_init.hpp.
|
inline |
Initialize the random initialization rule with the given lower bound and upper bound.
| lowerBound | The number used as lower bound. |
| upperBound | The number used as upper bound. |
Definition at line 34 of file random_init.hpp.
|
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.
| bound | The number used as lower bound |
Definition at line 45 of file random_init.hpp.
|
inline |
Initialize randomly the elements of the specified weight matrix.
| W | Weight matrix to initialize. |
| rows | Number of rows. |
| cols | Number of columns. |
Definition at line 56 of file random_init.hpp.
References lowerBound, and upperBound.
Referenced by Initialize(), mlpack::ann::NguyenWidrowInitialization::Initialize(), mlpack::ann::KathirvalavakumarSubavathiInitialization::Initialize(), and mlpack::ann::OivsInitialization< ActivationFunction >::Initialize().
|
inline |
Initialize randomly the elements of the specified weight 3rd order tensor.
| W | Weight matrix to initialize. |
| rows | Number of rows. |
| cols | Number of columns. |
Definition at line 70 of file random_init.hpp.
References Initialize().
|
private |
The number used as lower bound.
Definition at line 83 of file random_init.hpp.
Referenced by Initialize().
|
private |
The number used as upper bound.
Definition at line 86 of file random_init.hpp.
Referenced by Initialize().
1.8.11