#ifndef MLPP_MULTINOMIAL_NB_H #define MLPP_MULTINOMIAL_NB_H // // MultinomialNB.hpp // // Created by Marc Melikyan on 1/17/21. // #include #include class MLPPMultinomialNB { public: MLPPMultinomialNB(std::vector> inputSet, std::vector outputSet, int class_num); std::vector modelSetTest(std::vector> X); double modelTest(std::vector x); double score(); private: void computeTheta(); void Evaluate(); // Model Params std::vector priors; std::vector> theta; std::vector vocab; int class_num; // Datasets std::vector> inputSet; std::vector outputSet; std::vector y_hat; }; #endif /* MultinomialNB_hpp */