C++ Logistic Regression & Naïve Bayes

Job ID: 31718459

Budget: $10 – $30 USD

I need two programs in C++, one for logistic regression from scratch and one for naive bayes from scratch. I need the following done:
C++ Logistic Regression program:
o Implement Logistic Regression in C++
o train/test on the same data as in the R script; output the same metrics
o feel free to use whatever data structures you like: arrays, vectors, etc.
o output the coefficients of the model
• C++ Naïve Bayes program:
o implement Naïve Bayes in C++
o train/test on the same data as in the R script; output the same metrics
o feel free to use whatever data structures you like: arrays, vectors, etc.
o output the coefficients of the model
Titanic data set “titanic_project.csv” . Use the first 900 observations for train, the
rest for test.