25 namespace classifier {
34 std::string predicted_label =
classify(sfv);
35 if (label == predicted_label) {
43 return string(
"perceptron");
jubatus::util::lang::shared_ptr< jubatus::core::storage::storage_base > storage_ptr
void train(const common::sfv_t &sfv, const std::string &label)
void check_touchable(const std::string &label)
std::string classify(const common::sfv_t &fv) const
std::vector< std::pair< std::string, float > > sfv_t
void touch(const std::string &label)
perceptron(storage_ptr storage)
void update_weight(const common::sfv_t &sfv, float step_weigth, const std::string &pos_label, const std::string &neg_class)