9 #ifndef META_NAIVE_BAYES_H_
10 #define META_NAIVE_BAYES_H_
12 #include <unordered_map>
44 naive_bayes(std::shared_ptr<index::forward_index> idx,
45 double alpha = default_alpha,
double beta = default_beta);
53 void train(
const std::vector<doc_id>& docs)
override;
61 class_label
classify(doc_id d_id)
override;
66 void reset()
override;
71 const static std::string
id;
90 std::unique_ptr<classifier>
92 std::shared_ptr<index::forward_index> idx);