mlpack
master
|
This class is used to initialize the weight matrix with the method proposed by T. More...
Public Member Functions | |
template<typename eT > | |
KathirvalavakumarSubavathiInitialization (const arma::Mat< eT > &data, const double s) | |
Initialize the random initialization rule with the given values. 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 Kathirvalavakumar-Subavathi 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 Kathirvalavakumar-Subavathi method. More... | |
Private Attributes | |
arma::rowvec | dataSum |
Parameter that defines the sum of elements in each column. More... | |
const double | s |
Parameter that defines the active region. More... | |
This class is used to initialize the weight matrix with the method proposed by T.
Kathirvalavakumar and S. Subavathi. The method is based on sensitivity analysis using using cauchy’s inequality. The method is defined by
where I is the number of inputs including the bias, p refers the pattern considered in training, f is the transfer function and \={s} is the active region in which the derivative of the activation function is greater than 4% of the maximum derivatives.
Definition at line 56 of file kathirvalavakumar_subavathi_init.hpp.
|
inline |
Initialize the random initialization rule with the given values.
data | The input patterns. |
s | Parameter that defines the active region. |
Definition at line 66 of file kathirvalavakumar_subavathi_init.hpp.
References dataSum.
|
inline |
Initialize the elements of the specified weight matrix with the Kathirvalavakumar-Subavathi method.
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
Definition at line 81 of file kathirvalavakumar_subavathi_init.hpp.
References dataSum, mlpack::ann::RandomInitialization::Initialize(), and s.
Referenced by Initialize().
|
inline |
Initialize the elements of the specified weight 3rd order tensor with the Kathirvalavakumar-Subavathi method.
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
Definition at line 98 of file kathirvalavakumar_subavathi_init.hpp.
References Initialize().
|
private |
Parameter that defines the sum of elements in each column.
Definition at line 111 of file kathirvalavakumar_subavathi_init.hpp.
Referenced by Initialize(), and KathirvalavakumarSubavathiInitialization().
|
private |
Parameter that defines the active region.
Definition at line 114 of file kathirvalavakumar_subavathi_init.hpp.
Referenced by Initialize().