MLPACK  1.0.8
Public Member Functions | Static Public Member Functions | List of all members
mlpack::nmf::HAlternatingLeastSquaresRule Class Reference

The update rule for the encoding matrix H. More...

Public Member Functions

 HAlternatingLeastSquaresRule ()
 

Static Public Member Functions

template<typename MatType >
static void Update (const MatType &V, const arma::mat &W, arma::mat &H)
 The update function that actually updates the H matrix. More...
 

Detailed Description

The update rule for the encoding matrix H.

The formula used is

\[ H = \frac{W^TV}{W^TW} \]

Definition at line 82 of file als_update_rules.hpp.

Constructor & Destructor Documentation

mlpack::nmf::HAlternatingLeastSquaresRule::HAlternatingLeastSquaresRule ( )
inline

Definition at line 86 of file als_update_rules.hpp.

Member Function Documentation

template<typename MatType >
static void mlpack::nmf::HAlternatingLeastSquaresRule::Update ( const MatType &  V,
const arma::mat &  W,
arma::mat &  H 
)
inlinestatic

The update function that actually updates the H matrix.

The function takes in all the matrices and only changes the value of the H matrix.

Parameters
VInput matrix to be factorized.
WBasis matrix.
HEncoding matrix to be updated.

Definition at line 97 of file als_update_rules.hpp.


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