13 #ifndef MLPACK_METHODS_AMF_INIT_RULES_GIVEN_INIT_HPP 14 #define MLPACK_METHODS_AMF_INIT_RULES_GIVEN_INIT_HPP 51 template<
typename MatType>
63 template<
typename Archive>
void Initialize(const MatType &, const size_t, arma::mat &W, arma::mat &H)
Fill W and H with random uniform noise.
arma::mat h
The H matrix for initialization.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
FirstShim< T > CreateNVP(T &t, const std::string &name, typename std::enable_if_t< HasSerialize< T >::value > *=0)
Call this function to produce a name-value pair; this is similar to BOOST_SERIALIZATION_NVP(), but should be used for types that have a Serialize() function (or contain a type that has a Serialize() function) instead of a serialize() function.
void Serialize(Archive &ar, const unsigned int)
Serialize the object (in this case, there is nothing to serialize).
This initialization rule for AMF simply fills the W and H matrices with the matrices given to the con...
GivenInitialization(const arma::mat &&w, const arma::mat &&h)
arma::mat w
The W matrix for initialization.
GivenInitialization(const arma::mat &w, const arma::mat &h)