void serialize(Archiver& ar) { std::map<std::string, std::string> sv; std::map<std::string, double> nv; if (ar.is_read) { ar & NAMED_MEMBER("string_values", sv) & NAMED_MEMBER("num_values", nv); string_values_ = sv_t(sv.begin(), sv.end()); num_values_ = nv_t(nv.begin(), nv.end()); } else { sv.insert(string_values_.begin(), string_values_.end()); nv.insert(num_values_.begin(), num_values_.end()); ar & NAMED_MEMBER("string_values", sv) & NAMED_MEMBER("num_values", nv); } }
void serialize(Ar& ar) { ar & NAMED_MEMBER("regularization_weight", C); }