This class is used to initialize the weight matrix with the oivs method. More...
Public Member Functions | |
OivsInitialization (const double epsilon=0.1, const int k=5, const double gamma=0.9) | |
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 oivs method. More... | |
template < typename eT > | |
void | Initialize (arma::Mat< eT > &W) |
Initialize the elements of the specified weight matrix with the oivs 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 oivs method. More... | |
template < typename eT > | |
void | Initialize (arma::Cube< eT > &W) |
Initialize the elements of the specified weight 3rd order tensor with the oivs method. More... | |
This class is used to initialize the weight matrix with the oivs method.
The method is based on the equations representing the characteristics of the information transformation mechanism of a node. The method is defined by
Where f is the transfer function epsilon, k custom parameters, n the number of neurons in the outgoing layer and gamma a parameter that defines the random interval.
ActivationFunction | The activation function used for the oivs method. |
Definition at line 59 of file oivs_init.hpp.
|
inline |
Initialize the random initialization rule with the given values.
epsilon | Parameter to control the activation region. |
k | Parameter to control the activation region width. |
gamma | Parameter to define the uniform random range. |
Definition at line 69 of file oivs_init.hpp.
|
inline |
Initialize the elements of the specified weight matrix with the oivs method.
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
Definition at line 86 of file oivs_init.hpp.
References RandomInitialization::Initialize().
Referenced by OivsInitialization< ActivationFunction >::Initialize().
|
inline |
Initialize the elements of the specified weight matrix with the oivs method.
W | Weight matrix to initialize. |
Definition at line 100 of file oivs_init.hpp.
References RandomInitialization::Initialize().
|
inline |
Initialize the elements of the specified weight 3rd order tensor with the oivs method.
W | 3rd order tensor to initialize. |
rows | Number of rows. |
cols | Number of columns. |
slices | Number of slices. |
Definition at line 118 of file oivs_init.hpp.
References OivsInitialization< ActivationFunction >::Initialize().
|
inline |
Initialize the elements of the specified weight 3rd order tensor with the oivs method.
W | 3rd order tensor to initialize. |
Definition at line 137 of file oivs_init.hpp.
References Log::Fatal, and OivsInitialization< ActivationFunction >::Initialize().