MLPACK  1.0.7
Public Member Functions | Static Public Member Functions | List of all members
mlpack::nmf::WAlternatingLeastSquaresRule Class Reference

The update rule for the basis matrix W. More...

Public Member Functions

 WAlternatingLeastSquaresRule ()
 

Static Public Member Functions

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

Detailed Description

The update rule for the basis matrix W.

The formula used is

\[ W^T = \frac{HV^T}{HH^T} \]

Definition at line 42 of file als_update_rules.hpp.

Constructor & Destructor Documentation

mlpack::nmf::WAlternatingLeastSquaresRule::WAlternatingLeastSquaresRule ( )
inline

Definition at line 46 of file als_update_rules.hpp.

Member Function Documentation

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

The update function that actually updates the W matrix.

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

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

Definition at line 57 of file als_update_rules.hpp.


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