33 #ifndef ML_CLASSIFIERS__NEAREST_NEIGHBOR_CLASSIFIER_HPP_ 34 #define ML_CLASSIFIERS__NEAREST_NEIGHBOR_CLASSIFIER_HPP_ 47 using ClassMap = std::map<std::string, CPointList>;
57 void save(
const std::string filename);
58 bool load(
const std::string filename);
67 #endif // ML_CLASSIFIERS__NEAREST_NEIGHBOR_CLASSIFIER_HPP_
std::vector< double > CPoint
NearestNeighborClassifier()
std::map< std::string, CPointList > ClassMap
void addTrainingPoint(std::string target_class, const std::vector< double > point)
std::string classifyPoint(const std::vector< double > point)
bool load(const std::string filename)
~NearestNeighborClassifier()
void save(const std::string filename)
std::vector< CPoint > CPointList