mlpack  1.0.12
Public Member Functions | Static Public Member Functions | List of all members
mlpack::amf::RandomAcolInitialization< p > Class Template Reference

This class initializes the W matrix of the AMF algorithm by averaging p randomly chosen columns of V. More...

Public Member Functions

 RandomAcolInitialization ()
 

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

template<int p = 5>
class mlpack::amf::RandomAcolInitialization< p >

This class initializes the W matrix of the AMF algorithm by averaging p randomly chosen columns of V.

In this case, p is a template parameter. H is then set randomly This simple initialization is performed by the random Acol initialization introduced in the paper 'Algorithms, Initializations and Convergence' by Langville et al.

Template Parameters
Thenumber of random columns to average for each column of W.

Definition at line 32 of file random_acol_init.hpp.

Constructor & Destructor Documentation

Definition at line 36 of file random_acol_init.hpp.

Member Function Documentation

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

Definition at line 40 of file random_acol_init.hpp.

References mlpack::math::RandInt(), and mlpack::Log::Warn.


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