|
mlpack
|
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... | |
This initialization rule for AMF simply takes in two initialization rules, and initialize W with the first rule and H with the second rule.
|
inline |
Initialize W and H with the corresponding initialization rules.
| V | Input matrix. |
| r | Rank of decomposition. |
| W | W matrix, to be initialized to given matrix. |
| H | H matrix, to be initialized to given matrix. |
1.8.13