MLPACK  1.0.4
Public Member Functions | Static Public Member Functions
mlpack::nmf::WMultiplicativeDivergenceRule Class Reference

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

List of all members.

Public Member Functions

 WMultiplicativeDivergenceRule ()

Static Public Member Functions

static void Update (const arma::mat &V, arma::mat &W, const arma::mat &H)
 The update function that actually updates the W matrix.

Detailed Description

The update rule for the basis matrix W.

The formula used is

\[ W_{ia} \leftarrow W_{ia} \frac{\sum_{\mu} H_{a\mu} V_{i\mu}/(WH)_{i\mu}} {\sum_{\nu} H_{a\nu}} \]

Definition at line 43 of file mult_div_update_rules.hpp.


Constructor & Destructor Documentation

Definition at line 47 of file mult_div_update_rules.hpp.


Member Function Documentation

static void mlpack::nmf::WMultiplicativeDivergenceRule::Update ( const arma::mat &  V,
arma::mat &  W,
const arma::mat &  H 
) [inline, static]

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 mult_div_update_rules.hpp.


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