mlpack
Public Member Functions | List of all members
mlpack::amf::MergeInitialization< WInitializationRuleType, HInitializationRuleType > Class Template Reference

This initialization rule for AMF simply takes in two initialization rules, and initialize W with the first rule and H with the second rule. More...

#include <merge_init.hpp>

Public Member Functions

 MergeInitialization (const WInitializationRuleType &wInitRule, const HInitializationRuleType &hInitRule)
 
template<typename MatType >
void Initialize (const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
 Initialize W and H with the corresponding initialization rules. More...
 

Detailed Description

template<typename WInitializationRuleType, typename HInitializationRuleType>
class mlpack::amf::MergeInitialization< WInitializationRuleType, HInitializationRuleType >

This initialization rule for AMF simply takes in two initialization rules, and initialize W with the first rule and H with the second rule.

Member Function Documentation

◆ Initialize()

template<typename WInitializationRuleType , typename HInitializationRuleType >
template<typename MatType >
void mlpack::amf::MergeInitialization< WInitializationRuleType, HInitializationRuleType >::Initialize ( const MatType &  V,
const size_t  r,
arma::mat &  W,
arma::mat &  H 
)
inline

Initialize W and H with the corresponding initialization rules.

Parameters
VInput matrix.
rRank of decomposition.
WW matrix, to be initialized to given matrix.
HH matrix, to be initialized to given matrix.

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