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>
FirstShim< T > CreateNVP(T &t, const std::string &name, typename boost::enable_if< HasSerialize< T >>::type *=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.
The core includes that mlpack expects; standard C++ includes and Armadillo.
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...
void Initialize(const MatType &, const size_t, arma::mat &W, arma::mat &H)
Fill W and H with random uniform noise.
GivenInitialization(const arma::mat &&w, const arma::mat &&h)
GivenInitialization(const arma::mat &w, const arma::mat &h)