/MachineLearning-cpp

Machine Learning algorithm from scratch with various dataset - CPP copy version from this repo.

Primary LanguageC++

MachineLearning-cpp

Machine Learning algorithm from scratch with various dataset - CPP copy version from this repo.

How to run

  1. Logistic regression (RMSE loss)
make logistic
./logistic

Test Accuracy with Breast Cancer Dataset: 96.5%

  1. Linear Regression
make linear
./linear

Score with House Price data: 0.732945

  1. K-Nearest Neighbor
make knn
./knn

Test Accuracy with Iris Dataset: 100%

  1. Support Vector Machine (classifier)
make svm
./svm

Test Accuracy with Breast Cancer Dataset: 95.6%

  1. Naive Bayes
make naive
./naive

Test Accuracy with Iris Dataset: 100%

Reference

[1] https://github.com/marvinlanhenke/DataScience/blob/main/MachineLearningFromScratch/

[2] https://github.com/pjreddie/darknet

[3] https://towardsdatascience.com/coding-linear-regression-from-scratch-c42ec079902