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

Public Member Functions

 MergeInitialization ()
 
 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.

Definition at line 27 of file merge_init.hpp.

Constructor & Destructor Documentation

◆ MergeInitialization() [1/2]

MergeInitialization ( )
inline

Definition at line 31 of file merge_init.hpp.

◆ MergeInitialization() [2/2]

MergeInitialization ( const WInitializationRuleType &  wInitRule,
const HInitializationRuleType &  hInitRule 
)
inline

Definition at line 35 of file merge_init.hpp.

Member Function Documentation

◆ Initialize()

void 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.

Definition at line 50 of file merge_init.hpp.


The documentation for this class was generated from the following file:
  • /home/ryan/src/mlpack.org/_src/mlpack-git/src/mlpack/methods/amf/init_rules/merge_init.hpp