12 #ifndef MLPACK_METHODS_LARS_LARS_IMPL_HPP 13 #define MLPACK_METHODS_LARS_LARS_IMPL_HPP 19 namespace regression {
24 template<
typename Archive>
28 if (cereal::is_loading<Archive>())
30 matGram = &matGramInternal;
31 ar(CEREAL_NVP(matGramInternal));
35 ar(cereal::make_nvp(
"matGramInternal",
36 (const_cast<arma::mat&>(*matGram))));
39 ar(CEREAL_NVP(matUtriCholFactor));
40 ar(CEREAL_NVP(useCholesky));
41 ar(CEREAL_NVP(lasso));
42 ar(CEREAL_NVP(lambda1));
43 ar(CEREAL_NVP(elasticNet));
44 ar(CEREAL_NVP(lambda2));
45 ar(CEREAL_NVP(tolerance));
46 ar(CEREAL_NVP(betaPath));
47 ar(CEREAL_NVP(lambdaPath));
48 ar(CEREAL_NVP(activeSet));
49 ar(CEREAL_NVP(isActive));
50 ar(CEREAL_NVP(ignoreSet));
51 ar(CEREAL_NVP(isIgnored));
void serialize(Archive &ar, const uint32_t)
Serialize the LARS model.
Definition: lars_impl.hpp:25
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1