14 #ifndef MLPACK_METHODS_AMF_MERGE_INIT_HPP 15 #define MLPACK_METHODS_AMF_MERGE_INIT_HPP 26 template<
typename WInitializationRuleType,
typename HInitializationRuleType>
36 const HInitializationRuleType& hInitRule) :
37 wInitializationRule(wInitRule),
38 hInitializationRule(hInitRule)
49 template<
typename MatType>
55 wInitializationRule.InitializeOne(V, r, W);
56 hInitializationRule.InitializeOne(V, r, H,
false);
61 WInitializationRuleType wInitializationRule;
63 HInitializationRuleType hInitializationRule;
Linear algebra utility functions, generally performed on matrices or vectors.
This initialization rule for AMF simply takes in two initialization rules, and initialize W with the ...
The core includes that mlpack expects; standard C++ includes and Armadillo.
void Initialize(const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
Initialize W and H with the corresponding initialization rules.
MergeInitialization(const WInitializationRuleType &wInitRule, const HInitializationRuleType &hInitRule)