9 #ifndef META_CLASSIFY_MODEL_LINEAR_MODEL_H_
10 #define META_CLASSIFY_MODEL_LINEAR_MODEL_H_
14 #include <unordered_map>
30 using std::runtime_error::runtime_error;
37 template <
class FeatureId,
class FeatureValue,
class ClassId>
89 void load(std::istream& is);
97 void save(std::ostream& os)
const;
110 template <
class FeatureVector,
class Filter>
119 template <
class FeatureVector>
133 template <
class FeatureVector,
class Filter>
135 Filter&& filter)
const;
144 template <
class FeatureVector>