9 #ifndef META_CLASSIFY_ONE_VS_ALL_H_
10 #define META_CLASSIFY_ONE_VS_ALL_H_
39 template <
class Function>
40 one_vs_all(std::shared_ptr<index::forward_index> idx, Function&& create)
43 for (
const auto&
label :
idx_->class_labels())
47 void train(
const std::vector<doc_id>& docs)
override;
49 class_label
classify(doc_id d_id)
override;
51 void reset()
override;
56 const static std::string
id;
62 std::unordered_map<class_label, std::unique_ptr<binary_classifier>>
71 std::unique_ptr<classifier>
73 std::shared_ptr<index::forward_index>);