#ifndef MLPP_BERNOULLI_NB_OLD_H #define MLPP_BERNOULLI_NB_OLD_H // // BernoulliNB.hpp // // Created by Marc Melikyan on 1/17/21. // #include "core/math/math_defs.h" #include #include class MLPPBernoulliNBOld { public: MLPPBernoulliNBOld(std::vector> inputSet, std::vector outputSet); std::vector modelSetTest(std::vector> X); real_t modelTest(std::vector x); real_t score(); private: void computeVocab(); void computeTheta(); void Evaluate(); // Model Params real_t prior_1 = 0; real_t prior_0 = 0; std::vector> theta; std::vector vocab; int class_num; // Datasets std::vector> inputSet; std::vector outputSet; std::vector y_hat; }; #endif /* BernoulliNB_hpp */