14 #ifndef __MLPACK_METHODS_AMF_AVERAGE_INIT_HPP 15 #define __MLPACK_METHODS_AMF_AVERAGE_INIT_HPP 44 template<
typename MatType>
50 const size_t n = V.n_rows;
51 const size_t m = V.n_cols;
59 for (
typename MatType::const_row_col_iterator it = V.begin();
69 avgV = sqrt(((avgV / (n * m)) - min) / r);
80 template<
typename Archive>
Linear algebra utility functions, generally performed on matrices or vectors.
This initialization rule initializes matrix W and H to root of the average of V, perturbed with unifo...
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
void Serialize(Archive &, const unsigned int)
Serialize the object (in this case, there is nothing to do).
static void Initialize(const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
Initialize the matrices W and H to the average value of V with uniform random noise added...