mlpack
|
This class initializes the W matrix of the AMF algorithm by averaging p randomly chosen columns of V. More...
#include <random_acol_init.hpp>
Public Member Functions | |
template<typename Archive > | |
void | serialize (Archive &, const uint32_t) |
Serialize the object (in this case, there is nothing to serialize). | |
Static Public Member Functions | |
template<typename MatType > | |
static void | Initialize (const MatType &V, const size_t r, arma::mat &W, arma::mat &H) |
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 filled using a uniform distribution in the range [0, 1].
This simple initialization is the "random Acol initialization" found in the following paper:
columnsToAverage | The number of random columns to average for each column of W. |