mlpack::nmf::RandomAcolInitialization< p > Class Template Reference

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

List of all members.

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::nmf::RandomAcolInitialization< p >

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

In this case, p is a template parameter. H is then set randomly.

Template Parameters:
The number of random columns to average for each column of W.

Definition at line 42 of file random_acol_init.hpp.


Constructor & Destructor Documentation

template<int p = 5>
mlpack::nmf::RandomAcolInitialization< p >::RandomAcolInitialization (  )  [inline]

Definition at line 46 of file random_acol_init.hpp.


Member Function Documentation

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

Definition at line 50 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:

Generated on 29 Sep 2016 for MLPACK by  doxygen 1.6.1