MLPACK  1.0.11
Public Member Functions | Static Public Member Functions | List of all members
mlpack::amf::AverageInitialization Class Reference

This initialization rule initializes matrix W and H to root of average of V with uniform noise. More...

Public Member Functions

 AverageInitialization ()
 

Static Public Member Functions

template<typename MatType >
static void Initialize (const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
 

Detailed Description

This initialization rule initializes matrix W and H to root of average of V with uniform noise.

Uniform noise is generated by Armadillo's 'randu' function. To have a better effect lower bound of the matrix is subtracted from average before dividing it by the factorization rank. This computed value is added with the random noise.

Definition at line 37 of file average_init.hpp.

Constructor & Destructor Documentation

mlpack::amf::AverageInitialization::AverageInitialization ( )
inline

Definition at line 41 of file average_init.hpp.

Member Function Documentation

template<typename MatType >
static void mlpack::amf::AverageInitialization::Initialize ( const MatType &  V,
const size_t  r,
arma::mat &  W,
arma::mat &  H 
)
inlinestatic

Definition at line 44 of file average_init.hpp.


The documentation for this class was generated from the following file: