10 #ifndef META_WINNOW_H_
11 #define META_WINNOW_H_
14 #include <unordered_map>
49 winnow(std::shared_ptr<index::forward_index> idx,
double m = default_m,
50 double gamma = default_gamma,
size_t max_iter = default_max_iter);
61 void train(
const std::vector<doc_id>& docs)
override;
72 class_label
classify(doc_id d_id)
override;
78 void reset()
override;
83 const static std::string
id;
105 std::unordered_map<class_label, std::unordered_map<term_id, double>>
123 std::unique_ptr<classifier>
125 std::shared_ptr<index::forward_index> idx);