#ifndef MLPP_MULTINOMIAL_NB_H #define MLPP_MULTINOMIAL_NB_H // // MultinomialNB.hpp // // Created by Marc Melikyan on 1/17/21. // #include "core/math/math_defs.h" #include #include class MLPPMultinomialNB { public: MLPPMultinomialNB(std::vector> inputSet, std::vector outputSet, int class_num); std::vector modelSetTest(std::vector> X); real_t modelTest(std::vector x); real_t 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 */