12 #ifndef MLPACK_METHODS_ANN_INIT_RULES_ORTHOGONAL_INIT_HPP 13 #define MLPACK_METHODS_ANN_INIT_RULES_ORTHOGONAL_INIT_HPP 43 void Initialize(arma::Mat<eT>& W,
const size_t rows,
const size_t cols)
48 arma::svd_econ(W, s, V, arma::randu<arma::Mat<eT> >(rows, cols));
67 W = arma::Cube<eT>(rows, cols, slices);
69 for (
size_t i = 0; i < slices; i++)
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 initializ...
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 meth...
The core includes that mlpack expects; standard C++ includes and Armadillo.
This class is used to initialize the weight matrix with the orthogonal matrix initialization.
OrthogonalInitialization(const double gain=1.0)
Initialize the orthogonal matrix initialization rule with the given gain.