// // kNN.hpp // // Created by Marc Melikyan on 10/2/20. // #ifndef kNN_hpp #define kNN_hpp #include namespace MLPP{ class kNN{ public: kNN(std::vector> inputSet, std::vector outputSet, int k); std::vector modelSetTest(std::vector> X); int modelTest(std::vector x); double score(); private: // Private Model Functions std::vector nearestNeighbors(std::vector x); int determineClass(std::vector knn); // Model Inputs and Parameters std::vector> inputSet; std::vector outputSet; int k; }; } #endif /* kNN_hpp */